diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2015-02-26 05:23:28 +0300 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2015-03-05 05:31:18 +0300 |
commit | 287aad82841f0f0e85406192b2f1f865bc0be67d (patch) | |
tree | d9c035a484c3f2727d7fa1cdf14ccd213c308508 /tests/PHPUnit/System/BlobReportLimitingTest.php | |
parent | a1cb3695319b321f92bb0a4fd31892a9bc1bdf38 (diff) |
Faster flattening for many reports
Diffstat (limited to 'tests/PHPUnit/System/BlobReportLimitingTest.php')
-rwxr-xr-x | tests/PHPUnit/System/BlobReportLimitingTest.php | 17 |
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 |