You are here

protected function MetatagManagerTest::setUp in Metatag 8

Overrides KernelTestBase::setUp

File

tests/src/Kernel/MetatagManagerTest.php, line 49

Class

MetatagManagerTest
Test the Metatag Manager class.

Namespace

Drupal\Tests\metatag\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this->entityTypeManager = $this->container
    ->get('entity_type.manager');
  $this->metatagManager = $this->container
    ->get('metatag.manager');
  $this
    ->installConfig([
    'system',
    'field',
    'text',
    'user',
    'metatag',
    'metatag_open_graph',
  ]);
  $this
    ->installEntitySchema('user');
  $this
    ->installSchema('user', [
    'users_data',
  ]);
}