Skip to content
Extraits de code Groupes Projets
Valider 83964a7e rédigé par Fabian Becker's avatar Fabian Becker
Parcourir les fichiers

Make test more useful.

Hopefully fix test now.

refs #3734
parent 2dcb3ee4
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -38,19 +38,19 @@ class WidgetsListTest extends DatabaseTestCase ...@@ -38,19 +38,19 @@ class WidgetsListTest extends DatabaseTestCase
// check if each category has the right number of widgets // check if each category has the right number of widgets
$numberOfWidgets = array( $numberOfWidgets = array(
'VisitsSummary_VisitsSummary' => 6, 'VisitsSummary_VisitsSummary' => 6,
'Live!' => 2, 'Live!' => 3,
'General_Visitors' => 12, 'General_Visitors' => 12,
'UserSettings_VisitorSettings' => 11, 'UserSettings_VisitorSettings' => 11,
'Actions_Actions' => 8, 'Actions_Actions' => 8,
'Actions_SubmenuSitesearch' => 5, 'Actions_SubmenuSitesearch' => 5,
'Referers_Referers' => 7, 'Referers_Referers' => 7,
'Goals_Goals' => 1, 'Goals_Goals' => 1,
'SEO' => 3, 'SEO' => 2,
'Example Widgets' => 4, 'Example Widgets' => 4,
'ExamplePlugin_exampleWidgets' => 3 'ExamplePlugin_exampleWidgets' => 3
); );
foreach ($numberOfWidgets AS $category => $widgetCount) { foreach ($numberOfWidgets AS $category => $widgetCount) {
$this->assertEquals($widgetCount, count($widgets[$category])); $this->assertEquals($widgetCount, count($widgets[$category]), sprintf("Widget: %s", $category));
} }
} }
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter