X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrush%2Fdrush%2Ftests%2FfilesystemTest.php;fp=vendor%2Fdrush%2Fdrush%2Ftests%2FfilesystemTest.php;h=0000000000000000000000000000000000000000;hp=03365403e6d2a6ac80cca1dbda2d69d85f4520f2;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/vendor/drush/drush/tests/filesystemTest.php b/vendor/drush/drush/tests/filesystemTest.php deleted file mode 100644 index 03365403e..000000000 --- a/vendor/drush/drush/tests/filesystemTest.php +++ /dev/null @@ -1,47 +0,0 @@ -is_windows()) { - $this->markTestSkipped("s-bit test doesn't apply on Windows."); - } - if (UNISH_USERGROUP === NULL) { - $this->markTestSkipped("s-bit test skipped because of UNISH_USERGROUP was not set."); - } - - $dest = UNISH_SANDBOX . '/test-filesystem-sbit'; - mkdir($dest); - chgrp($dest, UNISH_USERGROUP); - chmod($dest, 02755); // rwxr-sr-x - - $this->drush('pm-download', array('devel'), array('cache' => NULL, 'skip' => NULL, 'destination' => $dest)); - - $group = posix_getgrgid(filegroup($dest . '/devel/README.txt')); - $this->assertEquals($group['name'], UNISH_USERGROUP, 'Group is preserved.'); - - $perms = fileperms($dest . '/devel') & 02000; - $this->assertEquals($perms, 02000, 's-bit is preserved.'); - } - - public function testExecuteBits() { - if ($this->is_windows()) { - $this->markTestSkipped("execute bit test doesn't apply on Windows."); - } - - $dest = UNISH_SANDBOX . '/test-filesystem-execute'; - mkdir($dest); - $this->execute(sprintf("git clone --depth=1 https://github.com/drush-ops/drush.git %s", $dest . '/drush')); - - $perms = fileperms($dest . '/drush/drush') & 0111; - $this->assertEquals($perms, 0111, 'Execute permission is preserved.'); - } -} -