diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-05-24 15:29:29 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-05-24 15:29:29 +0400 |
commit | 6e5124c4b5297f8b127d2e43eed24853a2499ab4 (patch) | |
tree | 9a42c63637b8a650e62f609a2dbb78ffd65a7b99 | |
parent | 58c88c1b2980ee1c02a47cb3d35de1480402e6ac (diff) |
Last test
-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( |