function ViewExecutableFactoryTest::setUp

Same name and namespace in other branches
  1. 11.x core/modules/views/tests/src/Unit/ViewExecutableFactoryTest.php \Drupal\Tests\views\Unit\ViewExecutableFactoryTest::setUp()
  2. 10 core/modules/views/tests/src/Unit/ViewExecutableFactoryTest.php \Drupal\Tests\views\Unit\ViewExecutableFactoryTest::setUp()
  3. 9 core/modules/views/tests/src/Unit/ViewExecutableFactoryTest.php \Drupal\Tests\views\Unit\ViewExecutableFactoryTest::setUp()
  4. 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

ViewExecutableFactoryTest
Tests Drupal\views\ViewExecutableFactory.

Namespace

Drupal\Tests\views\Unit

Code

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.