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