You are here

public function EntityPrintAccessTest::setUp in Entity Print 8.2

Overrides KernelTestBase::setUp

File

tests/src/Kernel/EntityPrintAccessTest.php, line 45

Class

EntityPrintAccessTest
@coversDefaultClass \Drupal\entity_print\Controller\EntityPrintController @group entity_print

Namespace

Drupal\Tests\entity_print\Kernel

Code

public function setUp() : void {
  parent::setUp();
  $this
    ->installSchema('system', [
    'sequences',
    'key_value_expire',
  ]);
  $this
    ->installEntitySchema('user');
  $this
    ->installEntitySchema('node');
  $this
    ->installConfig([
    'system',
    'node',
    'filter',
    'field',
  ]);

  // Discard user 1 which causes havoc with access tests.
  $this
    ->createUser();
  $this
    ->createContentType([
    'type' => 'page',
    'name' => 'Page',
  ]);
  $this
    ->createContentType([
    'type' => 'article',
    'name' => 'Article',
  ]);
}