diff options
author | diosmosis <diosmosis@users.noreply.github.com> | 2020-06-03 02:33:27 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-03 02:33:27 +0300 |
commit | 7c12ec1754fb2ee1913c36f0c5a178ba8655830b (patch) | |
tree | bb48797ac3a7552e4fe9b0bc59881a8de97f620a /tests/PHPUnit/Framework | |
parent | 536bb7f3b4634ed72db769a11534adcab1a5b495 (diff) |
Archiving job prioritization and safety precautions (#15991)
* unfinished commit
* ensure correct order with test
* add unit test for climulti:request parser and get to pass
* fix test
* forgot to add file
* add missing method and tests
* couple fixes
* fix test
* Fix unit test.
Diffstat (limited to 'tests/PHPUnit/Framework')
-rw-r--r-- | tests/PHPUnit/Framework/Mock/FakeCliMulti.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/PHPUnit/Framework/Mock/FakeCliMulti.php b/tests/PHPUnit/Framework/Mock/FakeCliMulti.php index 47a4d6d106..0e0ae90ebc 100644 --- a/tests/PHPUnit/Framework/Mock/FakeCliMulti.php +++ b/tests/PHPUnit/Framework/Mock/FakeCliMulti.php @@ -9,6 +9,7 @@ namespace Piwik\Tests\Framework\Mock; use Piwik\Archiver\Request; use Piwik\CliMulti; +use Piwik\Timer; class FakeCliMulti extends CliMulti { @@ -20,6 +21,12 @@ class FakeCliMulti extends CliMulti return parent::request($piwikUrls); } + if ($this->isTimingRequests) { + foreach ($piwikUrls as $url) { + $this->timers[] = new Timer(); + } + } + $results = array(); foreach ($piwikUrls as $url) { if ($url instanceof Request) { |