protected function HandlerTestTrait::setupDisplay in Drupal 9
Same name and namespace in other branches
- 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 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();
}