protected function HandlerTestTrait::setupDisplay in Drupal 10
Same name and namespace in other branches
- 8 core/modules/views/tests/src/Unit/Plugin/HandlerTestTrait.php \Drupal\Tests\views\Unit\Plugin\HandlerTestTrait::setupDisplay()
- 9 core/modules/views/tests/src/Unit/Plugin/HandlerTestTrait.php \Drupal\Tests\views\Unit\Plugin\HandlerTestTrait::setupDisplay()
Sets up a mocked display object.
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\PluginCode
protected function setupDisplay() {
$this->display = $this
->getMockBuilder('Drupal\\views\\Plugin\\views\\display\\DisplayPluginBase')
->disableOriginalConstructor()
->getMock();
}