Skip to content

Commit

Permalink
adding a test for admin menus
Browse files Browse the repository at this point in the history
  • Loading branch information
dogmatic69 committed Sep 29, 2012
1 parent 8f61c5e commit 6010cab
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Core/Events/Test/Lib/InfinitasEventTestCase.php
Expand Up @@ -104,4 +104,11 @@ public function testRequireDatabaseConfigs() {
$result = $this->Event->trigger($this->ModelObject, $this->plugin . '.requireDatabaseConfigs');
$this->assertEquals($expected, $result);
}

public function testAdminMenu() {
$expected = $this->_manualCall('adminMenu', $this->ObjectEvent);

$result = $this->Event->trigger($this->ViewObject, $this->plugin . '.adminMenu');
$this->assertEquals($expected, $result);
}
}

0 comments on commit 6010cab

Please sign in to comment.