function RenderCacheTest::testUser1RolesContext

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

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

File

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

Class

RenderCacheTest
Tests the caching of render items via functional tests.

Namespace

Drupal\KernelTests\Core\Render

Code

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

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