You are here

protected function HandlerTestTrait::setupDisplay in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/views/tests/src/Unit/Plugin/HandlerTestTrait.php \Drupal\Tests\views\Unit\Plugin\HandlerTestTrait::setupDisplay()

Sets up a mocked display object.

1 call to HandlerTestTrait::setupDisplay()
HandlerBaseTest::setUp in core/modules/views/tests/src/Unit/Plugin/HandlerBaseTest.php

File

core/modules/views/tests/src/Unit/Plugin/HandlerTestTrait.php, line 68
Contains \Drupal\Tests\views\Unit\Plugin\HandlerTestTrait.

Class

HandlerTestTrait
Test trait to mock dependencies of a handler.

Namespace

Drupal\Tests\views\Unit\Plugin

Code

protected function setupDisplay() {
  $this->display = $this
    ->getMockBuilder('Drupal\\views\\Plugin\\views\\display\\DisplayPluginBase')
    ->disableOriginalConstructor()
    ->getMock();
}