6 * Tests for config-pull command. Sets up two Drupal sites.
11 class ConfigPullCase extends CommandUnishTestCase {
14 if (UNISH_DRUPAL_MAJOR_VERSION < 8) {
15 $this->markTestSkipped('Config only available on D8+.');
18 $this->setUpDrupal(2, TRUE);
22 * Make sure a change propogates using config-pull+config-import.
24 function testConfigPull() {
25 list($source, $destination) = array_keys($this->getSites());
27 $destination = "@$destination";
28 $this->drush('config-set', array('system.site', 'name', 'testConfigPull'), array('yes' => NULL), $source);
29 $this->drush('config-pull', array($source, $destination), array());
30 $this->drush('config-import', array(), array(), $destination);
31 $this->drush('config-get', array('system.site', 'name'), array(), $source);
32 $this->assertEquals("'system.site:name': testConfigPull", $this->getOutput(), 'Config was successfully pulled.');