You are here

protected function OgCacheContextTestBase::getContextResult in Organic groups 8

Return the context result.

Return value

string The context result.

3 calls to OgCacheContextTestBase::getContextResult()
OgContextCacheContextTestBase::testWithContext in tests/src/Unit/Cache/Context/OgContextCacheContextTestBase.php
Tests the result of the cache context service with active context objects.
OgGroupContextCacheContextTest::testWithoutContext in tests/src/Unit/Cache/Context/OgGroupContextCacheContextTest.php
Tests getting cache context when there is no matching group on the route.
OgMembershipStateCacheContextTest::testWithoutContext in tests/src/Unit/Cache/Context/OgMembershipStateCacheContextTest.php
Tests the result of the cache context service without active context.

File

tests/src/Unit/Cache/Context/OgCacheContextTestBase.php, line 28

Class

OgCacheContextTestBase
Base class for testing cache context services.

Namespace

Drupal\Tests\og\Unit\Cache\Context

Code

protected function getContextResult() {
  return $this
    ->getCacheContext()
    ->getContext();
}