You are here

public function FollowTestCase::_testIcons in Follow 7.2

1 call to FollowTestCase::_testIcons()
FollowTestCase::testFollow in tests/follow.test
Create one test function here to run all tests from, for speed.

File

tests/follow.test, line 47
Follow module tests.

Class

FollowTestCase
@file Follow module tests.

Code

public function _testIcons() {
  $default_style = follow_get_icon_style('small');

  // Determine the default icons.
  $default_icons = $this
    ->_globStyleIconDir($default_style);
  $styles = follow_icon_styles();
  foreach ($styles as $style) {
    if ($style['name'] == $default_style['name']) {
      continue;
    }
    $icons = $this
      ->_globStyleIconDir($style);
    $this
      ->verbose(print_r(array_diff($default_icons, $default_icons), 1));
    $t_args['@label'] = $style['label'];
    $this
      ->assertEqual($default_icons, $icons, t('The @label icon style contains all necessary icons.', $t_args));
  }
}