X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrush%2Fdrush%2Ftests%2FsiteSetUnitTest.php;fp=vendor%2Fdrush%2Fdrush%2Ftests%2FsiteSetUnitTest.php;h=3b2bf79ac940f79aaede37f881d682bc1a0bb9a1;hp=0000000000000000000000000000000000000000;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad diff --git a/vendor/drush/drush/tests/siteSetUnitTest.php b/vendor/drush/drush/tests/siteSetUnitTest.php new file mode 100644 index 000000000..3b2bf79ac --- /dev/null +++ b/vendor/drush/drush/tests/siteSetUnitTest.php @@ -0,0 +1,25 @@ +is_windows()) { + $this->markTestSkipped('Site-set not currently available on Windows.'); + } + + $tmp_path = UNISH_TMP; + putenv("TMPDIR=$tmp_path"); + $posix_pid = posix_getppid(); + $username = drush_get_username(); + + $expected_file = UNISH_TMP . '/drush-env-' . $username . '/drush-drupal-site-' . $posix_pid; + $filename = drush_sitealias_get_envar_filename(); + + $this->assertEquals($expected_file, $filename); + } +}