diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-06-06 10:21:30 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-06-06 10:21:30 +0400 |
commit | c828db5ab6e32ab2d79449e214470c0ac526eb08 (patch) | |
tree | 6cd811b21ff0aa7215eca6ed2b171d6ef432ba97 /tests | |
parent | 845aa8d7521c71988ab9070fe79d2d7744480ff4 (diff) |
Refs #5311 Edit Test name
Diffstat (limited to 'tests')
-rw-r--r-- | tests/PHPUnit/Core/ReleaseCheckListTest.php | 6 | ||||
m--------- | tests/PHPUnit/UI | 0 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/PHPUnit/Core/ReleaseCheckListTest.php b/tests/PHPUnit/Core/ReleaseCheckListTest.php index 08e78ebce6..191debfda9 100644 --- a/tests/PHPUnit/Core/ReleaseCheckListTest.php +++ b/tests/PHPUnit/Core/ReleaseCheckListTest.php @@ -191,7 +191,7 @@ class ReleaseCheckListTest extends PHPUnit_Framework_TestCase /** * @group Core */ - public function test_directoriesShouldBeWorldWritable() + public function test_directoriesShouldBeChmod755() { $pluginsPath = realpath(PIWIK_INCLUDE_PATH . '/plugins/'); @@ -209,12 +209,12 @@ class ReleaseCheckListTest extends PHPUnit_Framework_TestCase // to prevent errors with un-readable assets, // we ensure all directories in plugins/* are added to git with CHMOD 755 foreach($paths as $pathToTest) { - $command = "find $pluginsPath -type d -exec chmod 755 {} +"; $chmod = substr(decoct(fileperms($pathToTest)), -3); $valid = '755'; + $command = "find $pluginsPath -type d -exec chmod 755 {} +"; $this->assertSame($chmod, $valid, - "Some directories within plugins/ are not chmod 755. \n". + "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");; } } diff --git a/tests/PHPUnit/UI b/tests/PHPUnit/UI -Subproject a6488fb12b41f78259fdea44a6e5ee9f0835ffc +Subproject c8d299f7c6c688632b23a8fe286cc810719915f |