You are here

public function FaviconTestCase::testFailForBadMimeType in Favicon 7

Check that nothing is returned if an invalid shortcut icon is specified.

File

./favicon.test, line 63
Tests for Favicon

Class

FaviconTestCase
@file Tests for Favicon

Code

public function testFailForBadMimeType() {
  $theme_settings = variable_get('theme_settings', array());
  $theme_settings['favicon_path'] = 'index.php';
  variable_set('theme_settings', $theme_settings);
  $file_details = _favicon_get_favicon_file();
  $this
    ->assertEqual($file_details, FALSE, t('Ensure getting a non valid file type for favicon returns nothing'));
}