3b2bf79ac940f79aaede37f881d682bc1a0bb9a1
[yaffs-website] / vendor / drush / drush / tests / siteSetUnitTest.php
1 <?php
2
3 namespace Unish;
4
5 /**
6  * @group base
7  */
8 class siteSetUnitTest extends UnitUnishTestCase {
9
10   function testSiteSet() {
11     if ($this->is_windows()) {
12       $this->markTestSkipped('Site-set not currently available on Windows.');
13     }
14
15     $tmp_path = UNISH_TMP;
16     putenv("TMPDIR=$tmp_path");
17     $posix_pid = posix_getppid();
18     $username = drush_get_username();
19
20     $expected_file = UNISH_TMP . '/drush-env-' . $username . '/drush-drupal-site-' . $posix_pid;
21     $filename = drush_sitealias_get_envar_filename();
22
23     $this->assertEquals($expected_file, $filename);
24   }
25 }