You are here

protected function ViewsLocalTaskTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 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 52
Contains \Drupal\Tests\views\Unit\Plugin\Derivative\ViewsLocalTaskTest.

Class

ViewsLocalTaskTest
@coversDefaultClass \Drupal\views\Plugin\Derivative\ViewsLocalTask @group views

Namespace

Drupal\Tests\views\Unit\Plugin\Derivative

Code

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);
}