public function SiteStatusMessageTestCase::testMenu in Site Status Message 7
Test Site Status Message menu items.
File
- tests/
site_status_message.test, line 58 - Tests for Site Status Message module.
Class
- SiteStatusMessageTestCase
- Class SiteStatusMessageTestCase.
Code
public function testMenu() {
// Ensure menu items set in module are enabled.
$items = module_invoke('site_status_message', 'menu');
// Run checks on the menu items.
$this
->assertTrue(is_array($items), 'Menu hook returns array.');
$this
->assertEqual(1, count($items), 'Menu array defines only one item.');
}