You are here

public function EntityViewBuilderTest::setUp in Twig Tweak 3.x

Same name and namespace in other branches
  1. 3.1.x tests/src/Kernel/EntityViewBuilderTest.php \Drupal\Tests\twig_tweak\Kernel\EntityViewBuilderTest::setUp()

Overrides KernelTestBase::setUp

File

tests/src/Kernel/EntityViewBuilderTest.php, line 36

Class

EntityViewBuilderTest
A test for EntityViewBuilder.

Namespace

Drupal\Tests\twig_tweak\Kernel

Code

public function setUp() : void {
  parent::setUp();
  $this
    ->installConfig([
    'system',
    'node',
  ]);
  $this
    ->installEntitySchema('node');
  NodeType::create([
    'type' => 'article',
  ])
    ->save();
  $this
    ->setUpCurrentUser([], [
    'access content',
  ]);
}