You are here

protected function EntityReferenceFieldFormatterTest::setUp in Entity Embed 8

Overrides EntityEmbedTestBase::setUp

File

tests/src/Functional/EntityReferenceFieldFormatterTest.php, line 24

Class

EntityReferenceFieldFormatterTest
Tests the entity reference field formatters provided by entity_embed.

Namespace

Drupal\Tests\entity_embed\Functional

Code

protected function setUp() {
  parent::setUp();

  // Add a new menu entity which does not has a view controller.
  $this->menu = \Drupal::entityTypeManager()
    ->getStorage('menu')
    ->create([
    'id' => 'menu_name',
    'label' => 'Label',
    'description' => 'Description text',
  ]);
  $this->menu
    ->save();
}