function HandlerTestTrait::setupDisplay
Same name in other branches
- 9 core/modules/views/tests/src/Unit/Plugin/HandlerTestTrait.php \Drupal\Tests\views\Unit\Plugin\HandlerTestTrait::setupDisplay()
- 8.9.x core/modules/views/tests/src/Unit/Plugin/HandlerTestTrait.php \Drupal\Tests\views\Unit\Plugin\HandlerTestTrait::setupDisplay()
- 10 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 65
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();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.