From c401de550c65bc23f27ff79db87827dd9cc3d47a Mon Sep 17 00:00:00 2001 From: mattab <matthieu.aubry@gmail.com> Date: Fri, 6 Jun 2014 18:34:35 +1200 Subject: [PATCH] Some directories are 775. --- tests/PHPUnit/Core/ReleaseCheckListTest.php | 4 ++-- 1 file 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");; } -- GitLab