abstract public function OgContextCacheContextTestBase::contextProvider in Organic groups 8
Provides test data for the test with active context objects.
Return value
array An array of test data arrays, each array having two elements: 1. The test data that is used to set up the active context. 2. The cache context string that is expected to be returned by the cache context service being tested.
See also
::testWithContext()
2 methods override OgContextCacheContextTestBase::contextProvider()
- OgGroupContextCacheContextTest::contextProvider in tests/
src/ Unit/ Cache/ Context/ OgGroupContextCacheContextTest.php - Provides test data for the test with active context objects.
- OgMembershipStateCacheContextTest::contextProvider in tests/
src/ Unit/ Cache/ Context/ OgMembershipStateCacheContextTest.php - Provides test data for the test with active context objects.
File
- tests/
src/ Unit/ Cache/ Context/ OgContextCacheContextTestBase.php, line 86
Class
- OgContextCacheContextTestBase
- Base class for testing cache contexts that rely on OgContext.
Namespace
Drupal\Tests\og\Unit\Cache\ContextCode
public abstract function contextProvider();