function RenderCacheTest::testUser1PermissionContext

Same name in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Render/RenderCacheTest.php \Drupal\KernelTests\Core\Render\RenderCacheTest::testUser1PermissionContext()
  2. 8.9.x core/tests/Drupal/KernelTests/Core/Render/RenderCacheTest.php \Drupal\KernelTests\Core\Render\RenderCacheTest::testUser1PermissionContext()
  3. 11.x core/tests/Drupal/KernelTests/Core/Render/RenderCacheTest.php \Drupal\KernelTests\Core\Render\RenderCacheTest::testUser1PermissionContext()

Tests that user 1 has a different permission context with the same roles.

File

core/tests/Drupal/KernelTests/Core/Render/RenderCacheTest.php, line 46

Class

RenderCacheTest
Tests the caching of render items via functional tests.

Namespace

Drupal\KernelTests\Core\Render

Code

public function testUser1PermissionContext() : void {
    $this->doTestUser1WithContexts([
        'user.permissions',
    ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.