public function SiteStatusMessageTestCase::testSiteStatusMessageDisplayOptions in Site Status Message 7
Unit test for the message display options.
File
- tests/
site_status_message.test, line 254 - Tests for Site Status Message module.
Class
- SiteStatusMessageTestCase
- Class SiteStatusMessageTestCase.
Code
public function testSiteStatusMessageDisplayOptions() {
$options = _site_status_message_get_display_options();
$this
->assertEqual(count($options), 4, 'Four options defined as display options.');
$this
->assertTrue(isset($options['off']), 'Off option exists in array.');
$this
->assertTrue(isset($options['public']), 'Public-facing option exists in array.');
$this
->assertTrue(isset($options['admin']), 'Admin option exists in array.');
$this
->assertTrue(isset($options['both']), 'Both option exists in array.');
}