diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-06-06 10:34:35 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-06-06 10:34:35 +0400 |
commit | c401de550c65bc23f27ff79db87827dd9cc3d47a (patch) | |
tree | 32efecfae01b20a19d75bf03df78203ada562661 /tests | |
parent | b0a26ed036d76da9292b180541436fb5f62224d4 (diff) |
Some directories are 775.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/PHPUnit/Core/ReleaseCheckListTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/PHPUnit/Core/ReleaseCheckListTest.php b/tests/PHPUnit/Core/ReleaseCheckListTest.php index 191debfda9..f4ad8b4cfd 100644 --- a/tests/PHPUnit/Core/ReleaseCheckListTest.php +++ b/tests/PHPUnit/Core/ReleaseCheckListTest.php @@ -211,9 +211,9 @@ class ReleaseCheckListTest extends PHPUnit_Framework_TestCase foreach($paths as $pathToTest) { $chmod = substr(decoct(fileperms($pathToTest)), -3); - $valid = '755'; + $valid = array('775', '755'); $command = "find $pluginsPath -type d -exec chmod 755 {} +"; - $this->assertSame($chmod, $valid, + $this->assertTrue(in_array($chmod, $valid), $valid, "Some directories within plugins/ are not chmod 755. \n For example: $pathToTest \n\n". "Run this command to set all directories to 755: \n$command\n");; } |