metatag_verification.tags.test 1.0 KB

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