diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/PHPUnit/Core/PluginsFunctions/WidgetsListTest.php | 13 |
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( |