diff --git a/core/Theme.php b/core/Theme.php index 76fdd57303457aeaf1701edf94580c8619e337f2..3ae44431dec3dcb562b33764bbde0239074a186f 100644 --- a/core/Theme.php +++ b/core/Theme.php @@ -59,7 +59,7 @@ class Theme '~(src|href)=[\'"]([^\'"]+)[\'"]~', // rewrite images in CSS files, i.e. url(plugins/Morpheus/overrides/themes/default/images/help.png); - '~(url\()[\'"]([^\)]?[themes|plugins]+[^\)]+[.jpg|png|gif|svg]?)[\'"][\)]~', + '~(url\()[\'"]([^\)]?[plugins]+[^\)]+[.jpg|png|gif|svg]?)[\'"][\)]~', // rewrites images in JS files '~(=)[\s]?[\'"]([^\'"]+[.jpg|.png|.gif|svg]?)[\'"]~', diff --git a/tests/PHPUnit/IntegrationTestCase.php b/tests/PHPUnit/IntegrationTestCase.php index 09bb84192f68d113b369379638b6c105e6b047e4..d54db6e778fd77f25318e0d80f608bd5409fff57 100755 --- a/tests/PHPUnit/IntegrationTestCase.php +++ b/tests/PHPUnit/IntegrationTestCase.php @@ -187,7 +187,9 @@ abstract class IntegrationTestCase extends PHPUnit_Framework_TestCase Piwik::setUserIsSuperUser(); Cache::deleteTrackerCache(); - if ($installPlugins === null) $installPlugins = $createEmptyDatabase; + if ($installPlugins === null) { + $installPlugins = $createEmptyDatabase; + } static::installAndLoadPlugins( $installPlugins); diff --git a/tests/PHPUnit/UITest.php b/tests/PHPUnit/UITest.php index ad2206b7bb30a11d3e82f88472224c77c98e9021..26988c5a43456392d89d7d49e013dbdb03f4edde 100644 --- a/tests/PHPUnit/UITest.php +++ b/tests/PHPUnit/UITest.php @@ -113,7 +113,7 @@ abstract class UITest extends IntegrationTestCase parent::tearDownAfterClass(); } - + public function setUp() { parent::setUp(); @@ -262,6 +262,11 @@ Screenshot diff: $diffPath\n"; } } + self::createProxySymlinks(); + } + + private static function createProxySymlinks() + { foreach (self::$recursiveProxyLinkNames as $linkName) { $linkPath = PIWIK_INCLUDE_PATH . '/tests/PHPUnit/proxy/' . $linkName; if (!file_exists($linkPath)) {