protected function SortTest::setUp in Drupal 10
Same name in this branch
- 10 core/tests/Drupal/Tests/PhpCs/SortTest.php \Drupal\Tests\PhpCs\SortTest::setUp()
- 10 core/modules/jsonapi/tests/src/Unit/Query/SortTest.php \Drupal\Tests\jsonapi\Unit\Query\SortTest::setUp()
Same name and namespace in other branches
- 8 core/modules/jsonapi/tests/src/Unit/Query/SortTest.php \Drupal\Tests\jsonapi\Unit\Query\SortTest::setUp()
- 9 core/modules/jsonapi/tests/src/Unit/Query/SortTest.php \Drupal\Tests\jsonapi\Unit\Query\SortTest::setUp()
Overrides UnitTestCase::setUp
File
- core/
modules/ jsonapi/ tests/ src/ Unit/ Query/ SortTest.php, line 23
Class
- SortTest
- @coversDefaultClass \Drupal\jsonapi\Query\Sort @group jsonapi
Namespace
Drupal\Tests\jsonapi\Unit\QueryCode
protected function setUp() : void {
parent::setUp();
$container = new Container();
$cache_context_manager = $this
->prophesize(CacheContextsManager::class);
$cache_context_manager
->assertValidTokens(Argument::any())
->willReturn(TRUE);
$container
->set('cache_contexts_manager', $cache_context_manager
->reveal());
\Drupal::setContainer($container);
}