You are here

protected function EntityReferenceTest::setUp in Reference Table Formatter 2.0.x

Same name and namespace in other branches
  1. 8 tests/src/Kernel/EntityReferenceTest.php \Drupal\Tests\reference_table_formatter\Kernel\EntityReferenceTest::setUp()

Overrides EntityKernelTestBase::setUp

File

tests/src/Kernel/EntityReferenceTest.php, line 41

Class

EntityReferenceTest
@coversDefaultClass \Drupal\reference_table_formatter\Plugin\Field\FieldFormatter\EntityReferenceTableFormatter @group reference_table_formatter

Namespace

Drupal\Tests\reference_table_formatter\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->drupalSetCurrentUser($this
    ->drupalCreateUser([], NULL, TRUE));
  $this->renderer = $this->container
    ->get('renderer');
}