Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2017-01-22 03:03:26 +0300
committermattab <matthieu.aubry@gmail.com>2017-01-22 03:05:25 +0300
commita31a6c45a856631ed42c4c3d15003f4994674ca8 (patch)
tree7cf569305280df7ccbd1a4e94d52e9efbdaa5755 /tests/PHPUnit
parent8d35d5f1741fde98d1c1cb45cdffed8b52759d16 (diff)
Release check list test does not need to check favicon.ico is a png file refs https://github.com/piwik/piwik/pull/11190
Diffstat (limited to 'tests/PHPUnit')
-rw-r--r--tests/PHPUnit/Integration/ReleaseCheckListTest.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/PHPUnit/Integration/ReleaseCheckListTest.php b/tests/PHPUnit/Integration/ReleaseCheckListTest.php
index 459dca0029..d880f5bfb6 100644
--- a/tests/PHPUnit/Integration/ReleaseCheckListTest.php
+++ b/tests/PHPUnit/Integration/ReleaseCheckListTest.php
@@ -56,6 +56,10 @@ class ReleaseCheckListTest extends \PHPUnit_Framework_TestCase
public function test_icoFilesIconsShouldBeInPngFormat()
{
$files = Filesystem::globr(PIWIK_INCLUDE_PATH . '/plugins', '*.ico');
+
+ // filter favicon.ico as it may not be in PNG format which is fine
+ $files = array_filter($files, function($value) { return !preg_match('/favicon.ico/', $value); });
+
$this->checkFilesAreInPngFormat($files);
$files = Filesystem::globr(PIWIK_INCLUDE_PATH . '/core', '*.ico');
$this->checkFilesAreInPngFormat($files);