metatag_google_cse.tags.test 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. /**
  3. * @file
  4. * Tests that each of the Metatag Google CSE tags work correctly.
  5. */
  6. /**
  7. * Tests that each of the Metatag Google CSE tags work correctly.
  8. */
  9. class MetatagGoogleCSETagsTest extends MetatagTagsTestBase {
  10. /**
  11. * {@inheritdoc}
  12. */
  13. public static function getInfo() {
  14. return array(
  15. 'name' => 'Metatag tags: Google CSE',
  16. 'description' => 'Test the Metatag:Google CSE meta tags.',
  17. 'group' => 'Metatag',
  18. );
  19. }
  20. /**
  21. * {@inheritdoc}
  22. */
  23. public $tags = array(
  24. 'audience',
  25. 'department',
  26. 'doc_status',
  27. 'google_rating',
  28. 'thumbnail',
  29. );
  30. /**
  31. * {@inheritdoc}
  32. */
  33. public function setUp(array $modules = array()) {
  34. $modules[] = 'metatag_google_cse';
  35. parent::setUp($modules);
  36. }
  37. /**
  38. * Implements {meta_tag_name}_test_tag_name() for 'google_rating'.
  39. */
  40. public function google_rating_test_tag_name() {
  41. return 'rating';
  42. }
  43. /**
  44. * Implements {meta_tag_name}_test_value() for 'thumbnail'.
  45. */
  46. public function thumbnail_test_value() {
  47. return $this->randomImageUrl();
  48. }
  49. }