You are here

protected function AccessUnpublishedRouteLoadTest::userPermissions in Access unpublished 8

File

tests/src/Kernel/graphql/DataProducer/AccessUnpublishedRouteLoadTest.php, line 70

Class

AccessUnpublishedRouteLoadTest
Data producers AccessUnpublishedRouteLoad test class.

Namespace

Drupal\Tests\access_unpublished\Kernel\graphql\DataProducer

Code

protected function userPermissions() : array {
  NodeType::create([
    'type' => 'test',
    'name' => 'Test',
  ])
    ->save();
  return array_merge(parent::userPermissions(), [
    'access_unpublished node test',
  ]);
}