You are here

protected function MenuLinkFormatterTest::setUp in Menu Link (Field) 8

Overrides KernelTestBase::setUp

File

tests/src/Kernel/MenuLinkFormatterTest.php, line 35

Class

MenuLinkFormatterTest
Tests the menu link field formatters.

Namespace

Drupal\Tests\menu_link\Kernel

Code

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

  // Allow tests to compare MarkupInterface objects via assertEquals().
  $this
    ->registerComparator(new MarkupInterfaceComparator());
  $this->root = static::getDrupalRoot();
  $this
    ->initFileCache();
  $this
    ->bootEnvironment();
  $this
    ->bootKernel();
}