You are here

public function FaviconTestBase::assertThemeSetting in Favicon 7.2

1 call to FaviconTestBase::assertThemeSetting()
FaviconSecurityTestCase::testFaviconSecurity in tests/FaviconSecurityTestCase.test
Test that the favicon is not allowed to be set to an insecure file.

File

tests/FaviconTestBase.test, line 14

Class

FaviconTestBase

Code

public function assertThemeSetting($theme, $key, $expected) {
  $settings = variable_get('theme_' . $theme . '_settings', array());
  if ($expected === NULL) {
    $this
      ->assertTrue(!isset($settings[$key]), 'theme_' . $theme . '_settings[' . $key . '] is not set.');
  }
  else {
    $this
      ->assertIdentical($settings[$key], $expected, 'theme_' . $theme . '_settings[' . $key . '] is set to ' . var_export($expected, TRUE) . '.');
  }
}