metatag_verification.tags.test 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. /**
  3. * @file
  4. * Tests that each of the Metatag Verification tags work correctly.
  5. */
  6. /**
  7. * Tests that each of the Metatag Verification tags work correctly.
  8. */
  9. class MetatagVerificationTagsTest extends MetatagTagsTestBase {
  10. /**
  11. * {@inheritdoc}
  12. */
  13. public static function getInfo() {
  14. return array(
  15. 'name' => 'Metatag tags: Verification',
  16. 'description' => 'Test the Verification meta tags.',
  17. 'group' => 'Metatag',
  18. );
  19. }
  20. /**
  21. * {@inheritdoc}
  22. */
  23. public $tags = array(
  24. 'baidu-site-verification',
  25. 'google-site-verification',
  26. 'msvalidate.01',
  27. 'norton-safeweb-site-verification',
  28. 'p:domain_verify',
  29. 'yandex-verification',
  30. );
  31. /**
  32. * {@inheritdoc}
  33. */
  34. function setUp(array $modules = array()) {
  35. $modules[] = 'metatag_verification';
  36. parent::setUp($modules);
  37. }
  38. /**
  39. * {@inheritdoc}
  40. */
  41. public function getTestTagName($tag_name) {
  42. $tag_name = str_replace('_', '-', $tag_name);
  43. $tag_name = str_replace('msvalidate-01', 'msvalidate.01', $tag_name);
  44. $tag_name = str_replace('p-domain-verify', 'p:domain_verify', $tag_name);
  45. return $tag_name;
  46. }
  47. }