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:
authorStefan Giehl <stefan@matomo.org>2020-04-23 01:15:29 +0300
committerGitHub <noreply@github.com>2020-04-23 01:15:29 +0300
commit0cdeb6da6e4679c56aa351c004cbd6afe7843c56 (patch)
treeb228ec39e1cd274be77c3b6a661427e31bce8b78
parentd3e8c0279e395a99949b0854c9b4e850fc4c06f9 (diff)
Reactivates some skipped tests (#15848)
* removes some unused methods * reactivate some skipped tests
-rw-r--r--plugins/Contents/tests/System/ContentsTest.php3
-rw-r--r--plugins/Ecommerce/tests/System/EcommerceOrderWithItemsTest.php5
-rw-r--r--tests/PHPUnit/Framework/TestCase/SystemTestCase.php12
-rw-r--r--tests/PHPUnit/Integration/ArchiveWebTest.php4
-rw-r--r--tests/PHPUnit/Integration/JsProxyTest.php6
-rw-r--r--tests/PHPUnit/Integration/Tracker/RequestTest.php2
-rw-r--r--tests/PHPUnit/System/TwoVisitorsTwoWebsitesDifferentDaysTest.php5
-rw-r--r--tests/PHPUnit/System/UrlNormalizationTest.php3
8 files changed, 1 insertions, 39 deletions
diff --git a/plugins/Contents/tests/System/ContentsTest.php b/plugins/Contents/tests/System/ContentsTest.php
index d7a4b350a7..41aaed9c73 100644
--- a/plugins/Contents/tests/System/ContentsTest.php
+++ b/plugins/Contents/tests/System/ContentsTest.php
@@ -28,9 +28,6 @@ class ContentsTest extends SystemTestCase
public function testApi($api, $params)
{
$params['xmlFieldsToRemove'] = array('idsubdatatable');
- if(self::isMysqli()) {
- $this->markTestSkipped('Sometimes fail on MYSQLI (at random)');
- }
$this->runApiTests($api, $params);
}
diff --git a/plugins/Ecommerce/tests/System/EcommerceOrderWithItemsTest.php b/plugins/Ecommerce/tests/System/EcommerceOrderWithItemsTest.php
index d5809b3d01..033a858650 100644
--- a/plugins/Ecommerce/tests/System/EcommerceOrderWithItemsTest.php
+++ b/plugins/Ecommerce/tests/System/EcommerceOrderWithItemsTest.php
@@ -22,11 +22,6 @@ class EcommerceOrderWithItemsTest extends SystemTestCase
{
public static $fixture = null; // initialized below class definition
- public function testImagesIncludedInTests()
- {
- $this->alertWhenImagesExcludedFromTests();
- }
-
/**
* @dataProvider getApiForTesting
*/
diff --git a/tests/PHPUnit/Framework/TestCase/SystemTestCase.php b/tests/PHPUnit/Framework/TestCase/SystemTestCase.php
index a067283be7..e763d61865 100644
--- a/tests/PHPUnit/Framework/TestCase/SystemTestCase.php
+++ b/tests/PHPUnit/Framework/TestCase/SystemTestCase.php
@@ -111,18 +111,6 @@ abstract class SystemTestCase extends TestCase
return getenv('MYSQL_ADAPTER') == 'MYSQLI';
}
- protected function alertWhenImagesExcludedFromTests()
- {
- if (!Fixture::canImagesBeIncludedInScheduledReports()) {
- $this->markTestSkipped(
- '(This should not occur on Travis CI server as we expect these tests to run there). Scheduled reports generated during integration tests will not contain the image graphs. ' .
- 'For tests to generate images, use a machine with the following specifications : ' .
- 'OS = '.Fixture::IMAGES_GENERATED_ONLY_FOR_OS.', PHP = '.Fixture::IMAGES_GENERATED_FOR_PHP .
- ' and GD = ' . Fixture::IMAGES_GENERATED_FOR_GD
- );
- }
- }
-
/**
* Return 4 Api Urls for testing scheduled reports :
* - one in HTML format with all available reports
diff --git a/tests/PHPUnit/Integration/ArchiveWebTest.php b/tests/PHPUnit/Integration/ArchiveWebTest.php
index a077a119ad..c9954c6631 100644
--- a/tests/PHPUnit/Integration/ArchiveWebTest.php
+++ b/tests/PHPUnit/Integration/ArchiveWebTest.php
@@ -26,10 +26,6 @@ class ArchiveWebTest extends SystemTestCase
{
public function test_WebArchiving()
{
- if (self::isMysqli() && self::isTravisCI()) {
- $this->markTestSkipped('Skipping on Mysqli as it randomly fails.');
- }
-
$host = Fixture::getRootUrl();
$token = Fixture::getTokenAuth();
diff --git a/tests/PHPUnit/Integration/JsProxyTest.php b/tests/PHPUnit/Integration/JsProxyTest.php
index 2c9830d71c..beee637925 100644
--- a/tests/PHPUnit/Integration/JsProxyTest.php
+++ b/tests/PHPUnit/Integration/JsProxyTest.php
@@ -55,9 +55,6 @@ class JsProxyTest extends IntegrationTestCase
public function testPiwikPhp()
{
- if(IntegrationTestCase::isMysqli()) {
- $this->markTestSkipped('Sometimes fails with 500 error');
- }
$curlHandle = curl_init();
$url = $this->getStaticSrvUrl() . '/js/?idsite=1';
curl_setopt($curlHandle, CURLOPT_URL, $url);
@@ -69,9 +66,6 @@ class JsProxyTest extends IntegrationTestCase
$this->assertEquals(200, $responseInfo["http_code"], var_export($responseInfo, true) . $fullResponse);
$expected = "R0lGODlhAQABAIAAAAAAAAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==";
$processed = base64_encode($fullResponse);
- if ($expected != $processed) {
- $this->markTestSkipped("testPiwikPhp invalid response content: " . $fullResponse);
- }
$this->assertEquals(
$expected,
diff --git a/tests/PHPUnit/Integration/Tracker/RequestTest.php b/tests/PHPUnit/Integration/Tracker/RequestTest.php
index bbf5d376b3..8c06fcda94 100644
--- a/tests/PHPUnit/Integration/Tracker/RequestTest.php
+++ b/tests/PHPUnit/Integration/Tracker/RequestTest.php
@@ -55,7 +55,7 @@ class RequestTest extends IntegrationTestCase
$this->expectException(\Exception::class);
$this->expectExceptionMessage('Custom timestamp is 86500 seconds old');
- $request = $this->buildRequest(array('cdt' => '' . $this->time - 86500));
+ $request = $this->buildRequest(array('cdt' => '' . ($this->time - 86500)));
$request->setCurrentTimestamp($this->time);
$this->assertSame($this->time, $request->getCurrentTimestamp());
}
diff --git a/tests/PHPUnit/System/TwoVisitorsTwoWebsitesDifferentDaysTest.php b/tests/PHPUnit/System/TwoVisitorsTwoWebsitesDifferentDaysTest.php
index 43335c0e81..aec2925513 100644
--- a/tests/PHPUnit/System/TwoVisitorsTwoWebsitesDifferentDaysTest.php
+++ b/tests/PHPUnit/System/TwoVisitorsTwoWebsitesDifferentDaysTest.php
@@ -27,11 +27,6 @@ class TwoVisitorsTwoWebsitesDifferentDaysTest extends SystemTestCase
{
public static $fixture = null; // initialized below class definition
- public function testImagesIncludedInTests()
- {
- $this->alertWhenImagesExcludedFromTests();
- }
-
/**
* @dataProvider getApiForTesting
*/
diff --git a/tests/PHPUnit/System/UrlNormalizationTest.php b/tests/PHPUnit/System/UrlNormalizationTest.php
index f0318751b3..817a67a985 100644
--- a/tests/PHPUnit/System/UrlNormalizationTest.php
+++ b/tests/PHPUnit/System/UrlNormalizationTest.php
@@ -28,9 +28,6 @@ class UrlNormalizationTest extends SystemTestCase
*/
public function testApi($api, $params)
{
- if(self::isMysqli()) {
- $this->markTestSkipped('Sometimes fail on MYSQLI (at random)');
- }
$this->runApiTests($api, $params);
}