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

Classes

Namesort descending Description
siteSetUnitTest @group base

File

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