function ViewsLocalTaskTest::setUp
Same name and namespace in other branches
- 8.9.x core/modules/views/tests/src/Unit/Plugin/Derivative/ViewsLocalTaskTest.php \Drupal\Tests\views\Unit\Plugin\Derivative\ViewsLocalTaskTest::setUp()
- 10 core/modules/views/tests/src/Unit/Plugin/Derivative/ViewsLocalTaskTest.php \Drupal\Tests\views\Unit\Plugin\Derivative\ViewsLocalTaskTest::setUp()
- 11.x core/modules/views/tests/src/Unit/Plugin/Derivative/ViewsLocalTaskTest.php \Drupal\Tests\views\Unit\Plugin\Derivative\ViewsLocalTaskTest::setUp()
Overrides UnitTestCase::setUp
File
-
core/
modules/ views/ tests/ src/ Unit/ Plugin/ Derivative/ ViewsLocalTaskTest.php, line 55
Class
- ViewsLocalTaskTest
- @coversDefaultClass <a href="/api/drupal/core%21modules%21views%21src%21Plugin%21Derivative%21ViewsLocalTask.php/class/ViewsLocalTask/9" title="Provides local task definitions for all views configured as local tasks." class="local">\Drupal\views\Plugin\Derivative\ViewsLocalTask</a> @group views
Namespace
Drupal\Tests\views\Unit\Plugin\DerivativeCode
protected function setUp() : void {
$this->routeProvider = $this->createMock('Drupal\\Core\\Routing\\RouteProviderInterface');
$this->state = $this->createMock('Drupal\\Core\\State\\StateInterface');
$this->viewStorage = $this->createMock('Drupal\\Core\\Entity\\EntityStorageInterface');
$this->localTaskDerivative = new TestViewsLocalTask($this->routeProvider, $this->state, $this->viewStorage);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.