You are here

protected function PathPluginBaseTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/views/tests/src/Unit/Plugin/display/PathPluginBaseTest.php \Drupal\Tests\views\Unit\Plugin\display\PathPluginBaseTest::setUp()

Overrides UnitTestCase::setUp

File

core/modules/views/tests/src/Unit/Plugin/display/PathPluginBaseTest.php, line 52
Contains \Drupal\Tests\views\Unit\Plugin\display\PathPluginBaseTest.

Class

PathPluginBaseTest
@coversDefaultClass \Drupal\views\Plugin\views\display\PathPluginBase @group views

Namespace

Drupal\Tests\views\Unit\Plugin\display

Code

protected function setUp() {
  parent::setUp();
  $this->routeProvider = $this
    ->createMock('Drupal\\Core\\Routing\\RouteProviderInterface');
  $this->state = $this
    ->createMock('\\Drupal\\Core\\State\\StateInterface');
  $this->pathPlugin = $this
    ->getMockBuilder('Drupal\\views\\Plugin\\views\\display\\PathPluginBase')
    ->setConstructorArgs([
    [],
    'path_base',
    [],
    $this->routeProvider,
    $this->state,
  ])
    ->setMethods(NULL)
    ->getMock();
  $this
    ->setupContainer();
}