metatag_facebook.tags.test 912 B

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