diff options
author | diosmosis <diosmosis@users.noreply.github.com> | 2019-11-28 05:31:45 +0300 |
---|---|---|
committer | Thomas Steur <tsteur@users.noreply.github.com> | 2019-11-28 05:31:45 +0300 |
commit | 6dbd89292ca8de7019d62c45c88fd115b14cff43 (patch) | |
tree | d2cd9c685baef21be4e7eafb3b110a2a5180a790 /tests/PHPUnit/Integration | |
parent | 5d0cfbc7dc786d7977d8ece0995fa32512ca7d9c (diff) |
Add test to make sure woff2 file is up to date... (#15172)
Diffstat (limited to 'tests/PHPUnit/Integration')
-rw-r--r-- | tests/PHPUnit/Integration/ReleaseCheckListTest.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/PHPUnit/Integration/ReleaseCheckListTest.php b/tests/PHPUnit/Integration/ReleaseCheckListTest.php index 6875a3d8ce..0bc8438445 100644 --- a/tests/PHPUnit/Integration/ReleaseCheckListTest.php +++ b/tests/PHPUnit/Integration/ReleaseCheckListTest.php @@ -38,6 +38,15 @@ class ReleaseCheckListTest extends \PHPUnit_Framework_TestCase parent::setUp(); } + public function test_woff2_fileIsUpToDate() + { + link(PIWIK_INCLUDE_PATH . "/plugins/Morpheus/fonts/matomo.ttf", "temp.ttf"); + $command = PIWIK_INCLUDE_PATH . "/../travis_woff2/woff2_compress 'temp.ttf'"; + passthru($command); + + $this->assertFileEquals('temp.woff2', PIWIK_INCLUDE_PATH . "/plugins/Morpheus/fonts/matomo.woff2"); + } + public function test_minimumPHPVersion_isEnforced() { global $piwik_minimumPHPVersion; |