9b77eb8e0c258cfbeef6c417a1678bbe38e7a68a
[yaffs-website] / web / modules / contrib / metatag / metatag_facebook / src / Tests / MetatagFacebookTagsTest.php
1 <?php
2
3 namespace Drupal\metatag_facebook\Tests;
4
5 use Drupal\simpletest\WebTestBase;
6 use Drupal\metatag\Tests\MetatagTagsTestBase;
7
8 /**
9  * Tests that each of the Metatag Facebook tags work correctly.
10  *
11  * @group metatag
12  */
13 class MetatagFacebookTagsTest extends MetatagTagsTestBase {
14
15   /**
16    * {@inheritdoc}
17    */
18   public $tags = [
19     'fb_admins',
20     'fb_app_id',
21     'fb_pages',
22   ];
23
24   /**
25    * The attribute to look for to indicate which tag.
26    */
27   public $test_name_attribute = 'property';
28
29   /**
30    * {@inheritdoc}
31    */
32   protected function setUp() {
33     parent::$modules[] = 'metatag_facebook';
34     parent::setUp();
35   }
36
37   /**
38    * Each of these meta tags has a different tag name vs its internal name.
39    */
40   public function getTestTagName($tag_name) {
41     $tag_name = str_replace('fb_', 'fb:', $tag_name);
42     return $tag_name;
43   }
44
45 }