You are here

public function SiteBannerRenderingUnitTestCase::testBannerHeaderTagExists in Site Banner 7

Tests if header banner is in right CSS tag.

File

./site_banner.test, line 113

Class

SiteBannerRenderingUnitTestCase
Implements tests for checking that banner rendering functions are correct.

Code

public function testBannerHeaderTagExists() {
  $page = array();
  $page = site_banner_build_banner($page);
  $result = $page['page_top'][0]['#attributes']['id'] == 'siteBannerHeaderBanner';
  $message = 'Banner header tag in page array.';
  $this
    ->assertTrue($result, $message);
}