You are here

public function SiteBannerColorUnitTestCase::testBackgroundColorsExist in Site Banner 7

Tests whether there is at least one preset background color.

File

./site_banner.test, line 32

Class

SiteBannerColorUnitTestCase
Implements tests for checking that preset colors are valid.

Code

public function testBackgroundColorsExist() {
  $background_colors = site_banner_get_background_colors();
  $result = count($background_colors) > 0;
  $message = 'Background colors should exist.';
  $this
    ->assertTrue($result, $message);
}