function ConfigPullCase::testConfigPull

8.0.x configPulltest.php ConfigPullCase::testConfigPull()
master configPulltest.php ConfigPullCase::testConfigPull()

File

tests/configPulltest.php, line 24

Namespace

Unish

Class

ConfigPullCase
Tests for config-pull command. Sets up two Drupal sites. @group commands @group slow @group config

Code

function testConfigPull() {
  list($source, $destination) = array_keys($this->getSites());
  $source = "@$source";
  $destination = "@$destination";
  $this->drush('config-set', array('system.site', 'name', 'testConfigPull'), array('yes' => NULL), $source);
  $this->drush('config-pull', array($source, $destination), array());
  $this->drush('config-import', array(), array(), $destination);
  $this->drush('config-get', array('system.site', 'name'), array(), $source);
  $this->assertEquals("'system.site:name': testConfigPull", $this->getOutput(), 'Config was successfully pulled.');
}