protected function HandlerTestTrait::setupViewsData 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::setupViewsData()
- 9 core/modules/views/tests/src/Unit/Plugin/HandlerTestTrait.php \Drupal\Tests\views\Unit\Plugin\HandlerTestTrait::setupViewsData()
Sets up a mocked views data object.
1 call to HandlerTestTrait::setupViewsData()
- FieldTest::setUp in core/
modules/ views/ tests/ src/ Unit/ Plugin/ field/ FieldTest.php
File
- core/
modules/ views/ tests/ src/ Unit/ Plugin/ HandlerTestTrait.php, line 54
Class
- HandlerTestTrait
- Test trait to mock dependencies of a handler.
Namespace
Drupal\Tests\views\Unit\PluginCode
protected function setupViewsData() {
$this->viewsData = $this
->getMockBuilder('Drupal\\views\\ViewsData')
->disableOriginalConstructor()
->getMock();
}