protected function ViewExecutableFactoryTest::setUp in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 66  - Contains \Drupal\Tests\views\Unit\ViewExecutableFactoryTest.
 
Class
- ViewExecutableFactoryTest
 - @coversDefaultClass \Drupal\views\ViewExecutableFactory @group views
 
Namespace
Drupal\Tests\views\UnitCode
protected function setUp() {
  parent::setUp();
  $this->user = $this
    ->getMock('Drupal\\Core\\Session\\AccountInterface');
  $this->requestStack = new RequestStack();
  $this->view = $this
    ->getMock('Drupal\\views\\ViewEntityInterface');
  $this->viewsData = $this
    ->getMockBuilder('Drupal\\views\\ViewsData')
    ->disableOriginalConstructor()
    ->getMock();
  $this->routeProvider = $this
    ->getMock('Drupal\\Core\\Routing\\RouteProviderInterface');
  $this->viewExecutableFactory = new ViewExecutableFactory($this->user, $this->requestStack, $this->viewsData, $this->routeProvider);
}