function HandlerTestTrait::setupDisplay

Same name in other branches
  1. 8.9.x core/modules/views/tests/src/Unit/Plugin/HandlerTestTrait.php \Drupal\Tests\views\Unit\Plugin\HandlerTestTrait::setupDisplay()
  2. 10 core/modules/views/tests/src/Unit/Plugin/HandlerTestTrait.php \Drupal\Tests\views\Unit\Plugin\HandlerTestTrait::setupDisplay()
  3. 11.x 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 63

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();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.