You are here

protected function GraphQLContentTestBase::userPermissions in GraphQL 8.3

Add the 'access content' permission to the mocked account.

Overrides ProphesizePermissionsTrait::userPermissions

2 calls to GraphQLContentTestBase::userPermissions()
EntityBasicFieldsTest::userPermissions in modules/graphql_core/tests/src/Kernel/Entity/EntityBasicFieldsTest.php
Set the prophesized permissions.
EntityMutationTest::userPermissions in modules/graphql_core/tests/src/Kernel/EntityMutation/EntityMutationTest.php
Allow to modify all nodes.
2 methods override GraphQLContentTestBase::userPermissions()
EntityBasicFieldsTest::userPermissions in modules/graphql_core/tests/src/Kernel/Entity/EntityBasicFieldsTest.php
Set the prophesized permissions.
EntityMutationTest::userPermissions in modules/graphql_core/tests/src/Kernel/EntityMutation/EntityMutationTest.php
Allow to modify all nodes.

File

modules/graphql_core/tests/src/Kernel/GraphQLContentTestBase.php, line 38

Class

GraphQLContentTestBase
Base class for node based tests.

Namespace

Drupal\Tests\graphql_core\Kernel

Code

protected function userPermissions() {
  $perms = parent::userPermissions();
  $perms[] = 'access content';
  $perms[] = 'access user profiles';
  return $perms;
}