public function SiteBannerRenderingUnitTestCase::testBannerFooterTextExists in Site Banner 7
Tests if footer banner text built by hook implementation.
File
- ./
site_banner.test, line 153
Class
- SiteBannerRenderingUnitTestCase
- Implements tests for checking that banner rendering functions are correct.
Code
public function testBannerFooterTextExists() {
$banner = variable_get('site_banner_text', '');
$page = array();
site_banner_page_build($page);
$result = $page['page_top'][1]['#value'] == $banner;
$message = 'Banner footer displays correct text: "' . $banner . '".';
$this
->assertTrue($result, $message);
}