Skip to content

Commit

Permalink
Make test more useful.
Browse files Browse the repository at this point in the history
Hopefully fix test now.

refs #3734
  • Loading branch information
halfdan committed Mar 25, 2013
1 parent 2dcb3ee commit 83964a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/PHPUnit/Core/PluginsFunctions/WidgetsListTest.php
Expand Up @@ -38,19 +38,19 @@ public function testGet()
// check if each category has the right number of widgets
$numberOfWidgets = array(
'VisitsSummary_VisitsSummary' => 6,
'Live!' => 2,
'Live!' => 3,
'General_Visitors' => 12,
'UserSettings_VisitorSettings' => 11,
'Actions_Actions' => 8,
'Actions_SubmenuSitesearch' => 5,
'Referers_Referers' => 7,
'Goals_Goals' => 1,
'SEO' => 3,
'SEO' => 2,
'Example Widgets' => 4,
'ExamplePlugin_exampleWidgets' => 3
);
foreach ($numberOfWidgets AS $category => $widgetCount) {
$this->assertEquals($widgetCount, count($widgets[$category]));
$this->assertEquals($widgetCount, count($widgets[$category]), sprintf("Widget: %s", $category));
}
}

Expand Down

0 comments on commit 83964a7

Please sign in to comment.