function ResultTest::setUp
Same name in other branches
- 9 core/modules/views/tests/src/Unit/Plugin/area/ResultTest.php \Drupal\Tests\views\Unit\Plugin\area\ResultTest::setUp()
- 8.9.x core/modules/views/tests/src/Unit/Plugin/area/ResultTest.php \Drupal\Tests\views\Unit\Plugin\area\ResultTest::setUp()
- 11.x core/modules/views/tests/src/Unit/Plugin/area/ResultTest.php \Drupal\Tests\views\Unit\Plugin\area\ResultTest::setUp()
Overrides UnitTestCase::setUp
File
-
core/
modules/ views/ tests/ src/ Unit/ Plugin/ area/ ResultTest.php, line 41
Class
- ResultTest
- @coversDefaultClass \Drupal\views\Plugin\views\area\Result @group views
Namespace
Drupal\Tests\views\Unit\Plugin\areaCode
protected function setUp() : void {
parent::setUp();
$storage = $this->prophesize(View::class);
$storage->label()
->willReturn('ResultTest');
$storage->set(Argument::cetera())
->willReturn(NULL);
$user = $this->prophesize(AccountInterface::class)
->reveal();
$views_data = $this->prophesize(ViewsData::class)
->reveal();
$route_provider = $this->prophesize(RouteProviderInterface::class)
->reveal();
$display_plugin_manager = $this->prophesize(ViewsPluginManager::class)
->reveal();
$this->view = new ViewExecutable($storage->reveal(), $user, $views_data, $route_provider, $display_plugin_manager);
$this->resultHandler = new Result([], 'result', []);
$this->resultHandler->view = $this->view;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.