467c349ac7247ee26409675b4ad3ce061e9f6fc0
[yaffs-website] / web / modules / contrib / metatag / metatag_google_cse / src / Tests / MetatagGoogleCSETagsTest.php
1 <?php
2
3 namespace Drupal\metatag_google_cse\Tests;
4
5 use Drupal\simpletest\WebTestBase;
6 use Drupal\metatag\Tests\MetatagTagsTestBase;
7
8 /**
9  * Tests that each of the Metatag Google CSE tags work correctly.
10  *
11  * @group metatag
12  */
13 class MetatagGoogleCSETagsTest extends MetatagTagsTestBase {
14
15   /**
16    * {@inheritdoc}
17    */
18   public $tags = [
19     'audience',
20     'department',
21     'doc_status',
22     'google_rating',
23     'thumbnail',
24   ];
25
26   /**
27    * The attribute to look for to indicate which tag.
28    */
29   // public $test_name_attribute = 'property';
30
31   /**
32    * {@inheritdoc}
33    */
34   protected function setUp() {
35     parent::$modules[] = 'metatag_google_cse';
36     parent::setUp();
37   }
38
39   /**
40    * Implements {meta_tag_name}_test_tag_name() for 'google_rating'.
41    */
42   public function google_rating_test_tag_name() {
43     return 'rating';
44   }
45
46 }