SessionCacheContextTest::$session

Same name and namespace in other branches
  1. 8.9.x core/tests/Drupal/Tests/Core/Cache/Context/SessionCacheContextTest.php \Drupal\Tests\Core\Cache\Context\SessionCacheContextTest::session
  2. 10 core/tests/Drupal/Tests/Core/Cache/Context/SessionCacheContextTest.php \Drupal\Tests\Core\Cache\Context\SessionCacheContextTest::session
  3. 11.x core/tests/Drupal/Tests/Core/Cache/Context/SessionCacheContextTest.php \Drupal\Tests\Core\Cache\Context\SessionCacheContextTest::session

The session object.

Type: \Symfony\Component\HttpFoundation\Session\SessionInterface|\PHPUnit\Framework\MockObject\MockObject

File

core/tests/Drupal/Tests/Core/Cache/Context/SessionCacheContextTest.php, line 35

Class

SessionCacheContextTest
@coversDefaultClass <a href="/api/drupal/core%21lib%21Drupal%21Core%21Cache%21Context%21SessionCacheContext.php/class/SessionCacheContext/9" title="Defines the SessionCacheContext service, for &quot;per session&quot; caching." class="local">\Drupal\Core\Cache\Context\SessionCacheContext</a> @group Cache

Namespace

Drupal\Tests\Core\Cache\Context

Code

protected $session;

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