protected function AccessResultTest::assertDefaultCacheability in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Access/AccessResultTest.php \Drupal\Tests\Core\Access\AccessResultTest::assertDefaultCacheability()
- 9 core/tests/Drupal/Tests/Core/Access/AccessResultTest.php \Drupal\Tests\Core\Access\AccessResultTest::assertDefaultCacheability()
@internal
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
File
- core/
tests/ Drupal/ Tests/ Core/ Access/ AccessResultTest.php, line 51 - Contains \Drupal\Tests\Core\Access\AccessResultTest.
Class
- AccessResultTest
- @coversDefaultClass \Drupal\Core\Access\AccessResult @group Access
Namespace
Drupal\Tests\Core\AccessCode
protected function assertDefaultCacheability(AccessResult $access) : void {
$this
->assertSame([], $access
->getCacheContexts());
$this
->assertSame([], $access
->getCacheTags());
$this
->assertSame(Cache::PERMANENT, $access
->getCacheMaxAge());
}