Skip to content
Extraits de code Groupes Projets
Valider 4a2545e6 rédigé par mattab's avatar mattab
Parcourir les fichiers

Fix build and make comparison more explicit for all format except binary format pdf

parent 26e5ed4c
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -72,10 +72,16 @@ class TestRequestResponse ...@@ -72,10 +72,16 @@ class TestRequestResponse
if ($expected->requestUrl['format'] == 'xml') { if ($expected->requestUrl['format'] == 'xml') {
Asserts::assertXmlStringEqualsXmlString($expectedText, $actualText, $message); Asserts::assertXmlStringEqualsXmlString($expectedText, $actualText, $message);
} else { return;
}
// for PDF files, check content size to get quick feedback
if(!empty($expected->requestUrl['reportFormat'])
&& $expected->requestUrl['reportFormat'] == 'pdf') {
Asserts::assertEquals(strlen($expectedText), strlen($actualText), $message); Asserts::assertEquals(strlen($expectedText), strlen($actualText), $message);
Asserts::assertEquals($expectedText, $actualText, $message);
} }
Asserts::assertEquals($expectedText, $actualText, $message);
} }
private function normalizeApiResponse($apiResponse) private function normalizeApiResponse($apiResponse)
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<a id="reportTop" target="_blank" href=""><img title="Go to Piwik" border="0" alt="Piwik" src='plugins/Morpheus/images/logo-header.png'/></a> <a id="reportTop" target="_blank" href=""><img title="Go to Piwik" border="0" alt="Piwik" src='plugins/Morpheus/images/logo-header.png'/></a>
<h1 style="color: rgb(126,115,99); font-size: 11pt;"> <h1 style="color: rgb(126,115,99); font-size: 11pt;">
Website Piwik test Piwik test
</h1> </h1>
<p> <p>
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<a id="reportTop" target="_blank" href=""><img title="Go to Piwik" border="0" alt="Piwik" src='plugins/Morpheus/images/logo-header.png'/></a> <a id="reportTop" target="_blank" href=""><img title="Go to Piwik" border="0" alt="Piwik" src='plugins/Morpheus/images/logo-header.png'/></a>
   
<h1 style="color: rgb(126,115,99); font-size: 11pt;"> <h1 style="color: rgb(126,115,99); font-size: 11pt;">
Website Piwik test Piwik test
</h1> </h1>
   
<p> <p>
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<a id="reportTop" target="_blank" href=""><img title="Go to Piwik" border="0" alt="Piwik" src='plugins/Morpheus/images/logo-header.png'/></a> <a id="reportTop" target="_blank" href=""><img title="Go to Piwik" border="0" alt="Piwik" src='plugins/Morpheus/images/logo-header.png'/></a>
   
<h1 style="color: rgb(126,115,99); font-size: 11pt;"> <h1 style="color: rgb(126,115,99); font-size: 11pt;">
Website Piwik test Piwik test
</h1> </h1>
   
<p> <p>
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter