X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrush%2Fdrush%2Ftests%2FconfigTest.php;fp=vendor%2Fdrush%2Fdrush%2Ftests%2FconfigTest.php;h=77d9d075c18c39a2c14f093021704f9c399dd323;hp=3189802365a43a2a3eb92270fa964be34d3f33af;hb=eba34333e3c89f208d2f72fa91351ad019a71583;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae diff --git a/vendor/drush/drush/tests/configTest.php b/vendor/drush/drush/tests/configTest.php index 318980236..77d9d075c 100644 --- a/vendor/drush/drush/tests/configTest.php +++ b/vendor/drush/drush/tests/configTest.php @@ -74,35 +74,6 @@ class ConfigCase extends CommandUnishTestCase { $this->drush('config-get', array('system.site', 'page'), $options + array('format' => 'json')); $page = $this->getOutputFromJSON('system.site:page'); $this->assertContains('unish partial', $page->front, '--partial was successfully imported.'); - - $this->drush('pm-enable', array('tracker'), $options); - $ignored_modules = array('skip-modules' => 'tracker'); - - // Run config-export again - note that 'tracker' is enabled, but we - // are going to ignore it on write, so no changes should be written - // to core.extension when it is exported. - $this->drush('config-export', array(), $options + $ignored_modules); - $this->assertFileExists($core_extension_yml); - $contents = file_get_contents($core_extension_yml); - $this->assertNotContains('tracker', $contents); - - // Run config-import again, but ignore 'tracker' when importing. - // It is not presently in the exported configuration, because we enabled - // it after export. If we imported again without adding 'tracker' with - // 'skip-modules' option, then it would be disabled. - $this->drush('config-import', array(), $options + $ignored_modules); - $this->drush('config-get', array('core.extension', 'module'), $options + array('format' => 'yaml')); - $modules = $this->getOutput(); - $this->assertContains('tracker', $modules, 'Tracker module appears in extension list after import, as it should.'); - - // Run config-export one final time. 'tracker' is still enabled, even - // though it was ignored in the previous import/export operations. - // When we remove the skip-modules option, then 'tracker' will - // be exported. - $this->drush('config-export', array(), $options); - $this->assertFileExists($core_extension_yml); - $contents = file_get_contents($core_extension_yml); - $this->assertContains('tracker', $contents); } function options() {