protected function EntityAccessCheckTest::setUp in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Entity/EntityAccessCheckTest.php \Drupal\Tests\Core\Entity\EntityAccessCheckTest::setUp()
- 9 core/tests/Drupal/Tests/Core/Entity/EntityAccessCheckTest.php \Drupal\Tests\Core\Entity\EntityAccessCheckTest::setUp()
Overrides UnitTestCase::setUp
File
- core/
tests/ Drupal/ Tests/ Core/ Entity/ EntityAccessCheckTest.php, line 32
Class
- EntityAccessCheckTest
- Unit test of entity access checking system.
Namespace
Drupal\Tests\Core\EntityCode
protected function setUp() : void {
$cache_contexts_manager = $this
->prophesize(CacheContextsManager::class)
->reveal();
$container = new Container();
$container
->set('cache_contexts_manager', $cache_contexts_manager);
\Drupal::setContainer($container);
}