public function SiteStatusMessageTestCase::testTheme in Site Status Message 7
Tests for the Site Status Message theme.
File
- tests/
site_status_message.test, line 107 - Tests for Site Status Message module.
Class
- SiteStatusMessageTestCase
- Class SiteStatusMessageTestCase.
Code
public function testTheme() {
// Ensure the theme function is correctly loaded.
$items = module_invoke('site_status_message', 'theme', array(), 'module', '', '');
// Run tests on the theme.
$this
->assertTrue(is_array($items), 'Theme hook returns an array.');
$this
->assertEqual(1, count($items), 'Only one theme functions defined.');
$this
->assertTrue(array_key_exists('site_status_message', $items), 'Site Status Message Theme function is as expected.');
}