public function SiteBannerRenderingUnitTestCase::testBannerFooterTagExists in Site Banner 7
Tests if footer banner is in right CSS tag.
File
- ./
site_banner.test, line 126
Class
- SiteBannerRenderingUnitTestCase
- Implements tests for checking that banner rendering functions are correct.
Code
public function testBannerFooterTagExists() {
$page = array();
site_banner_page_build($page);
$result = $page['page_top'][1]['#attributes']['id'] == 'siteBannerFooterBanner';
$message = 'Banner footer tag in page array.';
$this
->assertTrue($result, $message);
}