You are here

public function ReferenceAccessTest::testUnsupportedOperation in Bibliography & Citation 2.0.x

Same name and namespace in other branches
  1. 8 modules/bibcite_entity/tests/src/Kernel/ReferenceAccessTest.php \Drupal\Tests\bibcite_entity\Kernel\ReferenceAccessTest::testUnsupportedOperation()

Test operations not supported by reference grants.

File

modules/bibcite_entity/tests/src/Kernel/ReferenceAccessTest.php, line 252

Class

ReferenceAccessTest
Tests basic reference_access functionality.

Namespace

Drupal\Tests\bibcite_entity\Kernel

Code

public function testUnsupportedOperation() {
  $web_user = $this
    ->drupalCreateUser([
    'view bibcite_reference',
  ]);
  $reference = $this
    ->createReference();
  $this
    ->assertReferenceAccess([
    'random_operation' => FALSE,
  ], $reference, $web_user);
}