diff --git a/tests/PHPUnit/UITest.php b/tests/PHPUnit/UITest.php index e5e91b215da22d2a78f511cf8812b9df7c368a40..bc194dcae785d285b2b3b5464ad9d4167bfa5137 100644 --- a/tests/PHPUnit/UITest.php +++ b/tests/PHPUnit/UITest.php @@ -82,14 +82,14 @@ abstract class UITest extends IntegrationTestCase list($processedScreenshotPath, $expectedScreenshotPath) = self::getProcessedAndExpectedScreenshotPaths($name); $urls[] = array($processedScreenshotPath, $testUrl, $jsToTest); - // Screenshot Morpheus - list($processedScreenshotPath, $expectedScreenshotPath) = self::getProcessedAndExpectedScreenshotPaths($name, "Morpheus/"); - $enableMorpheus = "&morpheus=1"; + // Screenshot Zeitgeist + list($processedScreenshotPath, $expectedScreenshotPath) = self::getProcessedAndExpectedScreenshotPaths($name, "Zeitgeist/"); + $enableZeitgeist = "&zeitgeist=1"; // Add the parameter to the query string, not the hash if(($hash = strpos($testUrl, '#')) !== false) { - $testUrl = substr($testUrl, 0, $hash) . $enableMorpheus . substr($testUrl, $hash); + $testUrl = substr($testUrl, 0, $hash) . $enableZeitgeist . substr($testUrl, $hash); } else { - $testUrl .= $enableMorpheus; + $testUrl .= $enableZeitgeist; } $urls[] = array($processedScreenshotPath, $testUrl, $jsToTest); diff --git a/tests/PHPUnit/proxy/index.php b/tests/PHPUnit/proxy/index.php index 46941f0ddccbbb774e9368b05033e50888431d2a..006516991c61f2e20a2ab67dc9610bfbde8514c8 100644 --- a/tests/PHPUnit/proxy/index.php +++ b/tests/PHPUnit/proxy/index.php @@ -31,17 +31,17 @@ function loadAllPluginsButOneTheme() $themesNotToEnable = array('ExampleTheme', 'LeftMenu', 'PleineLune'); - $enableMorpheus = !empty($_REQUEST['morpheus']); - if (!$enableMorpheus) { - $themesNotToEnable[] = 'Morpheus'; + $enableZeitgeist = !empty($_REQUEST['zeitgeist']); + if (!$enableZeitgeist) { + $themesNotToEnable[] = 'Zeitgeist'; } $pluginsToEnable = array_diff($pluginsToEnable, $themesNotToEnable); \Piwik\Config::getInstance()->Plugins['Plugins'] = $pluginsToEnable; - return $enableMorpheus; + return $enableZeitgeist; } -$enableMorpheus = loadAllPluginsButOneTheme(); +$enableZeitgeist = loadAllPluginsButOneTheme(); $controller = \Piwik\FrontController::getInstance(); $controller->init(); @@ -49,9 +49,9 @@ $controller->init(); $response = $controller->dispatch(); -if($enableMorpheus) { +if($enableZeitgeist) { $replace = "action=getCss"; - $response = str_replace($replace, $replace . "&morpheus=1", $response); + $response = str_replace($replace, $replace . "&zeitgeist=1", $response); } if (!is_null($response)) {