X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrush%2Fdrush%2Fisolation%2Ftests%2FEnvironmentTest.php;fp=vendor%2Fdrush%2Fdrush%2Fisolation%2Ftests%2FEnvironmentTest.php;h=7056927edc7219606f192440298c042ede47389d;hp=0000000000000000000000000000000000000000;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/vendor/drush/drush/isolation/tests/EnvironmentTest.php b/vendor/drush/drush/isolation/tests/EnvironmentTest.php new file mode 100644 index 000000000..7056927ed --- /dev/null +++ b/vendor/drush/drush/isolation/tests/EnvironmentTest.php @@ -0,0 +1,33 @@ +environment()->exportConfigData(); + $this->assertEquals($this->homeDir(), $data['env']['cwd']); + } + + function testDocsPath() + { + $docsPath = $this->environment()->docsPath(); + $this->assertInternalType('string', $docsPath, 'A docsPath was found'); + $this->assertFileExists("$docsPath/README.md", 'README.md exists at docsPath'); + } + + function testDrushConfigFileFixturesExist() + { + $fixturesDir = $this->fixturesDir(); + $this->assertFileExists("$fixturesDir/etc/drush/drush.yml", '/etc/drush/drush.yml exists'); + $this->assertFileExists("$fixturesDir/home/.drush/drush.yml", '/home/.drush/drush.yml exists'); + } +}