metatag_facebook.tags.test 830 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. /**
  3. * Tests that each of the Metatag Facebook tags work correctly.
  4. */
  5. class MetatagFacebookTagsTest extends MetatagTagsTestBase {
  6. /**
  7. * {@inheritdoc}
  8. */
  9. public static function getInfo() {
  10. return array(
  11. 'name' => 'Metatag tags: Facebook',
  12. 'description' => 'Test the Facebook meta tags.',
  13. 'group' => 'Metatag',
  14. );
  15. }
  16. /**
  17. * {@inheritdoc}
  18. */
  19. function setUp(array $modules = array()) {
  20. $modules[] = 'metatag_facebook';
  21. parent::setUp($modules);
  22. }
  23. /**
  24. * {@inheritdoc}
  25. */
  26. public $tags = array(
  27. 'fb:admins',
  28. 'fb:app_id',
  29. 'fb:pages',
  30. );
  31. /**
  32. * {@inheritdoc}
  33. */
  34. public $test_name_attribute = 'property';
  35. /**
  36. * {@inheritdoc}
  37. */
  38. public function getTestTagName($tag_name) {
  39. return str_replace('fb_', 'fb:', $tag_name);
  40. }
  41. }