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:
authormattab <matthieu.aubry@gmail.com>2013-05-24 15:29:29 +0400
committermattab <matthieu.aubry@gmail.com>2013-05-24 15:29:29 +0400
commit6e5124c4b5297f8b127d2e43eed24853a2499ab4 (patch)
tree9a42c63637b8a650e62f609a2dbb78ffd65a7b99
parent58c88c1b2980ee1c02a47cb3d35de1480402e6ac (diff)
Last test
-rw-r--r--tests/PHPUnit/Core/PluginsFunctions/WidgetsListTest.php13
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/PHPUnit/Core/PluginsFunctions/WidgetsListTest.php b/tests/PHPUnit/Core/PluginsFunctions/WidgetsListTest.php
index f5861b94ca..8a0962f90a 100644
--- a/tests/PHPUnit/Core/PluginsFunctions/WidgetsListTest.php
+++ b/tests/PHPUnit/Core/PluginsFunctions/WidgetsListTest.php
@@ -30,8 +30,8 @@ class WidgetsListTest extends DatabaseTestCase
$widgets = Piwik_GetWidgetsList();
Piwik_WidgetsList::_reset();
- // there should be 11 main categories
- $this->assertEquals(11, count($widgets));
+ // number of main categories
+ $this->assertEquals(12, count($widgets));
// check if each category has the right number of widgets
$numberOfWidgets = array(
@@ -45,6 +45,7 @@ class WidgetsListTest extends DatabaseTestCase
'Goals_Goals' => 1,
'SEO' => 2,
'Example Widgets' => 4,
+ 'DevicesDetection_DevicesDetection' => 7,
'ExamplePlugin_exampleWidgets' => 3
);
foreach ($numberOfWidgets AS $category => $widgetCount) {
@@ -76,8 +77,8 @@ class WidgetsListTest extends DatabaseTestCase
$widgets = Piwik_GetWidgetsList();
Piwik_WidgetsList::_reset();
- // there should be 11 main categories
- $this->assertEquals(11, count($widgets));
+ // number of main categories
+ $this->assertEquals(12, count($widgets));
// check that the goal widget was added
$numberOfWidgets = array(
@@ -113,8 +114,8 @@ class WidgetsListTest extends DatabaseTestCase
$widgets = Piwik_GetWidgetsList();
Piwik_WidgetsList::_reset();
- // there should be 12 main categories
- $this->assertEquals(12, count($widgets));
+ // number of main categories
+ $this->assertEquals(13, count($widgets));
// check if each category has the right number of widgets
$numberOfWidgets = array(