siteSetUnitTest.php

  1. 8.0.x tests/siteSetUnitTest.php
  2. 6.x tests/siteSetUnitTest.php
  3. 7.x tests/siteSetUnitTest.php
  4. 5.x tests/siteSetUnitTest.php
  5. master tests/siteSetUnitTest.php

Namespace

Unish

Classes

Namesort descending Description
siteSetUnitTest @group base

File

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