You are here

protected function AccessResultTest::assertDefaultCacheability in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/Access/AccessResultTest.php \Drupal\Tests\Core\Access\AccessResultTest::assertDefaultCacheability()
7 calls to AccessResultTest::assertDefaultCacheability()
AccessResultTest::testAccessAllowed in core/tests/Drupal/Tests/Core/Access/AccessResultTest.php
@covers ::allowed @covers ::isAllowed @covers ::isForbidden @covers ::isNeutral
AccessResultTest::testAccessConditionallyAllowed in core/tests/Drupal/Tests/Core/Access/AccessResultTest.php
@covers ::allowedIf @covers ::isAllowed @covers ::isForbidden @covers ::isNeutral
AccessResultTest::testAccessConditionallyForbidden in core/tests/Drupal/Tests/Core/Access/AccessResultTest.php
@covers ::forbiddenIf @covers ::isAllowed @covers ::isForbidden @covers ::isNeutral
AccessResultTest::testAccessForbidden in core/tests/Drupal/Tests/Core/Access/AccessResultTest.php
@covers ::forbidden @covers ::isAllowed @covers ::isForbidden @covers ::isNeutral
AccessResultTest::testAndIf in core/tests/Drupal/Tests/Core/Access/AccessResultTest.php
@covers ::andIf

... See full list

File

core/tests/Drupal/Tests/Core/Access/AccessResultTest.php, line 47
Contains \Drupal\Tests\Core\Access\AccessResultTest.

Class

AccessResultTest
@coversDefaultClass \Drupal\Core\Access\AccessResult @group Access

Namespace

Drupal\Tests\Core\Access

Code

protected function assertDefaultCacheability(AccessResult $access) {
  $this
    ->assertSame([], $access
    ->getCacheContexts());
  $this
    ->assertSame([], $access
    ->getCacheTags());
  $this
    ->assertSame(Cache::PERMANENT, $access
    ->getCacheMaxAge());
}