Yaffs site version 1.1
[yaffs-website] / web / modules / contrib / metatag / src / Tests / MetatagFieldTestTest.php
1 <?php
2
3 namespace Drupal\metatag\Tests;
4
5 use Drupal\Core\Cache\Cache;
6 use Drupal\metatag\Tests\MetatagFieldTestBase;
7
8 /**
9  * Ensure that the Metatag field works correctly for the test entity.
10  *
11  * @group metatag
12  */
13 class MetatagFieldTestTest extends MetatagFieldTestBase {
14
15   /**
16    * {@inheritDoc}
17    */
18   public static $modules = [
19     // Needed for token handling.
20     'token',
21
22     // Needed for the field UI testing.
23     'field_ui',
24
25     // Needed to verify that nothing is broken for unsupported entities.
26     'contact',
27
28     // The base module.
29     'metatag',
30
31     // Some extra custom logic for testing Metatag.
32     'metatag_test_tag',
33
34     // Manages the entity type that is being tested.
35     'entity_test',
36   ];
37
38   /**
39    * {@inheritDoc}
40    */
41   protected $entity_perms = [
42     'view test entity',
43     'administer entity_test fields',
44     'administer entity_test content',
45   ];
46
47   /**
48    * {@inheritDoc}
49    */
50   protected $entity_type = 'entity_test';
51
52   /**
53    * {@inheritDoc}
54    */
55   protected $entity_label = 'Test entity';
56
57   /**
58    * {@inheritDoc}
59    */
60   protected $entity_bundle = 'entity_test';
61
62   /**
63    * {@inheritDoc}
64    */
65   protected $entity_add_path = 'entity_test/add';
66
67   /**
68    * {@inheritDoc}
69    */
70   protected $entity_field_admin_path = 'entity_test/structure/entity_test/fields';
71
72   /**
73    * @todo Fix this.
74    */
75   protected $entity_supports_defaults = FALSE;
76
77   /**
78    * {@inheritDoc}
79    */
80   protected $entity_title_field = 'name';
81
82 }