You are here

protected function ExtraFieldDisplayPluginTest::setUp in Extra Field 8.2

Overrides KernelTestBase::setUp

File

tests/src/Kernel/ExtraFieldDisplayPluginTest.php, line 52

Class

ExtraFieldDisplayPluginTest
Kernel test for Extra Field display plugins.

Namespace

Drupal\Tests\extra_field\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installEntitySchema('user');
  $this->container
    ->get('entity_type.manager')
    ->getStorage('node_type')
    ->create([
    'name' => 'Test',
    'title_label' => 'Title',
    'type' => 'test',
    'create_body' => FALSE,
  ])
    ->save();
  $this->node = $this->container
    ->get('entity_type.manager')
    ->getStorage('node')
    ->create([
    'type' => 'test',
    'title' => $this
      ->randomString(),
  ]);
}