You are here

public function FaviconTestCase::testPassForGoodMimeType in Favicon 7

Check that the correct favicon.ico details are returned if a valid shortcut icon is specified.

File

./favicon.test, line 50
Tests for Favicon

Class

FaviconTestCase
@file Tests for Favicon

Code

public function testPassForGoodMimeType() {
  $test_favicon_path = drupal_get_path('module', 'favicon') . DIRECTORY_SEPARATOR . 'favicon.ico';
  $theme_settings = variable_get('theme_settings', array());
  $theme_settings['favicon_path'] = str_replace(DIRECTORY_SEPARATOR, '/', $test_favicon_path);
  variable_set('theme_settings', $theme_settings);
  $this
    ->assertFavicon(getcwd() . DIRECTORY_SEPARATOR . $test_favicon_path, t('A valid shortcut file is specified.'));
}