8 class siteSetUnitTest extends UnitUnishTestCase {
10 function testSiteSet() {
11 if ($this->is_windows()) {
12 $this->markTestSkipped('Site-set not currently available on Windows.');
15 $tmp_path = UNISH_TMP;
16 putenv("TMPDIR=$tmp_path");
17 $posix_pid = posix_getppid();
18 $username = drush_get_username();
20 $expected_file = UNISH_TMP . '/drush-env-' . $username . '/drush-drupal-site-' . $posix_pid;
21 $filename = drush_sitealias_get_envar_filename();
23 $this->assertEquals($expected_file, $filename);