function ViewExecutableFactoryTest::setUp
Same name and namespace in other branches
- 11.x core/modules/views/tests/src/Unit/ViewExecutableFactoryTest.php \Drupal\Tests\views\Unit\ViewExecutableFactoryTest::setUp()
- 10 core/modules/views/tests/src/Unit/ViewExecutableFactoryTest.php \Drupal\Tests\views\Unit\ViewExecutableFactoryTest::setUp()
- 9 core/modules/views/tests/src/Unit/ViewExecutableFactoryTest.php \Drupal\Tests\views\Unit\ViewExecutableFactoryTest::setUp()
- 8.9.x core/modules/views/tests/src/Unit/ViewExecutableFactoryTest.php \Drupal\Tests\views\Unit\ViewExecutableFactoryTest::setUp()
Overrides UnitTestCase::setUp
File
-
core/
modules/ views/ tests/ src/ Unit/ ViewExecutableFactoryTest.php, line 78
Class
Namespace
Drupal\Tests\views\UnitCode
protected function setUp() : void {
parent::setUp();
$this->user = $this->createStub(AccountInterface::class);
$this->requestStack = new RequestStack();
$this->view = $this->createStub(ViewEntityInterface::class);
$this->viewsData = $this->createStub(ViewsData::class);
$this->routeProvider = $this->createStub(RouteProviderInterface::class);
$this->displayPluginManager = $this->createStub(ViewsPluginManager::class);
$this->viewExecutableFactory = new ViewExecutableFactory($this->user, $this->requestStack, $this->viewsData, $this->routeProvider, $this->displayPluginManager);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.