3 namespace Drupal\metatag\Tests;
5 use Drupal\Core\Cache\Cache;
6 use Drupal\metatag\Tests\MetatagFieldTestBase;
9 * Ensure that the Metatag field works correctly for the test entity.
13 class MetatagFieldTestTest extends MetatagFieldTestBase {
18 public static $modules = [
19 // Needed for token handling.
22 // Needed for the field UI testing.
25 // Needed to verify that nothing is broken for unsupported entities.
31 // Some extra custom logic for testing Metatag.
34 // Manages the entity type that is being tested.
41 protected $entity_perms = [
43 'administer entity_test fields',
44 'administer entity_test content',
50 protected $entity_type = 'entity_test';
55 protected $entity_label = 'Test entity';
60 protected $entity_bundle = 'entity_test';
65 protected $entity_add_path = 'entity_test/add';
70 protected $entity_field_admin_path = 'entity_test/structure/entity_test/fields';
75 protected $entity_supports_defaults = FALSE;
80 protected $entity_title_field = 'name';