bd56b65082445797c86ee5331afe0952e6f6ac94
[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\metatag\Tests\MetatagTagsTestBase;
6
7 /**
8  * Tests that each of the Metatag Facebook tags work correctly.
9  *
10  * @group metatag
11  */
12 class MetatagFacebookTagsTest extends MetatagTagsTestBase {
13
14   /**
15    * {@inheritdoc}
16    */
17   private $tags = [
18     'fb_admins',
19     'fb_app_id',
20     'fb_pages',
21   ];
22
23   /**
24    * {@inheritdoc}
25    */
26   private $testNameAttribute = 'property';
27
28   /**
29    * {@inheritdoc}
30    */
31   protected function setUp() {
32     parent::$modules[] = 'metatag_facebook';
33     parent::setUp();
34   }
35
36   /**
37    * Each of these meta tags has a different tag name vs its internal name.
38    */
39   private function getTestTagName($tag_name) {
40     $tag_name = str_replace('fb_', 'fb:', $tag_name);
41     return $tag_name;
42   }
43
44 }