diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2020-02-18 11:09:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-18 11:09:39 +0300 |
commit | df5c324cde50c473ad2cab4e117333d2803983c6 (patch) | |
tree | 9626dc344afecf5a52cbb2bda316ee70690eb016 /plugins/Insights | |
parent | e8cb9c2ae10dceec3fde93acb58569bb8d9c1b59 (diff) |
Add movers and shakers widget to dashboard (#15578)
* Add movers and shakers widget to dashboard
* few fixes
* show movers first
* move dashboard position again
* tests should be fixed
Diffstat (limited to 'plugins/Insights')
-rw-r--r-- | plugins/Insights/tests/Integration/ApiTest.php | 2 | ||||
-rw-r--r-- | plugins/Insights/tests/Integration/ModelTest.php | 8 |
2 files changed, 1 insertions, 9 deletions
diff --git a/plugins/Insights/tests/Integration/ApiTest.php b/plugins/Insights/tests/Integration/ApiTest.php index fc53973da5..5c3f616513 100644 --- a/plugins/Insights/tests/Integration/ApiTest.php +++ b/plugins/Insights/tests/Integration/ApiTest.php @@ -246,7 +246,7 @@ class ApiTest extends SystemTestCase $this->assertTrue($this->api->canGenerateInsights('2012-12-12', 'month')); $this->assertFalse($this->api->canGenerateInsights('last10', 'day')); - $this->assertFalse($this->api->canGenerateInsights('2012-11-11,2012-12-12', 'range')); + $this->assertTrue($this->api->canGenerateInsights('2012-11-11,2012-12-12', 'range')); } private function requestInsights($requestParams) diff --git a/plugins/Insights/tests/Integration/ModelTest.php b/plugins/Insights/tests/Integration/ModelTest.php index 7c3edbaf15..01643700f8 100644 --- a/plugins/Insights/tests/Integration/ModelTest.php +++ b/plugins/Insights/tests/Integration/ModelTest.php @@ -122,14 +122,6 @@ class ModelTest extends SystemTestCase $this->model->getLastDate('last10', 'day', 1); } - /** - * @expectedException \Exception - */ - public function test_getLastDate_shouldThrowExceptionInCaseOfRangePeriod() - { - $this->model->getLastDate('2012-11-11,2012-12-12', 'range', 1); - } - public function test_getTotalValue_shouldCalculateTotals() { $total = $this->model->getTotalValue(self::$fixture->idSite, 'day', self::$fixture->date1, 'nb_visits', false); |