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:
authorThomas Steur <thomas.steur@gmail.com>2015-02-26 05:23:28 +0300
committerThomas Steur <thomas.steur@gmail.com>2015-03-05 05:31:18 +0300
commit287aad82841f0f0e85406192b2f1f865bc0be67d (patch)
treed9c035a484c3f2727d7fa1cdf14ccd213c308508 /tests/PHPUnit/System/BlobReportLimitingTest.php
parenta1cb3695319b321f92bb0a4fd31892a9bc1bdf38 (diff)
Faster flattening for many reports
Diffstat (limited to 'tests/PHPUnit/System/BlobReportLimitingTest.php')
-rwxr-xr-xtests/PHPUnit/System/BlobReportLimitingTest.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/PHPUnit/System/BlobReportLimitingTest.php b/tests/PHPUnit/System/BlobReportLimitingTest.php
index f40305d1ad..84734b7b80 100755
--- a/tests/PHPUnit/System/BlobReportLimitingTest.php
+++ b/tests/PHPUnit/System/BlobReportLimitingTest.php
@@ -94,6 +94,23 @@ class BlobReportLimitingTest extends SystemTestCase
$this->runApiTests($api, $params);
}
+ /**
+ * @dataProvider getApiForTesting
+ */
+ public function testApiWithFlattening($apiToCall, $params)
+ {
+ if (empty($params['testSuffix'])) {
+ $params['testSuffix'] = '';
+ }
+ $params['testSuffix'] .= '_flattened';
+ if (empty($params['otherRequestParameters'])) {
+ $params['otherRequestParameters'] = array();
+ }
+ $params['otherRequestParameters']['flat'] = '1';
+
+ $this->runApiTests($apiToCall, $params);
+ }
+
public function testApiWithRankingQuery()
{
// custom setup