function ConfigCase::testConfigGetSet

8.0.x configTest.php ConfigCase::testConfigGetSet()
7.x configTest.php ConfigCase::testConfigGetSet()
master configTest.php ConfigCase::testConfigGetSet()

File

tests/configTest.php, line 22

Namespace

Unish

Class

ConfigCase
Tests for Configuration Management commands for D8+. @group commands @group config

Code

function testConfigGetSet() {
  $options = $this->options();
  $this->drush('config-set', array('system.site', 'name', 'config_test'), $options);
  $this->drush('config-get', array('system.site', 'name'), $options);
  $this->assertEquals("'system.site:name': config_test", $this->getOutput(), 'Config was successfully set and get.');
}