public function SiteBannerColorUnitTestCase::testTextColorsExist in Site Banner 7
Tests whether there is at least one preset text color.
File
- ./
site_banner.test, line 43
Class
- SiteBannerColorUnitTestCase
- Implements tests for checking that preset colors are valid.
Code
public function testTextColorsExist() {
$colors = site_banner_get_text_colors();
$result = count($colors) > 0;
$message = 'Text colors should exist.';
$this
->assertTrue($result, $message);
}