You are here

protected function PathPluginBaseTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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
    ->getMock('Drupal\\Core\\Routing\\RouteProviderInterface');
  $this->state = $this
    ->getMock('\\Drupal\\Core\\State\\StateInterface');
  $this->pathPlugin = $this
    ->getMockBuilder('Drupal\\views\\Plugin\\views\\display\\PathPluginBase')
    ->setConstructorArgs(array(
    array(),
    'path_base',
    array(),
    $this->routeProvider,
    $this->state,
  ))
    ->setMethods(NULL)
    ->getMock();
  $this
    ->setupContainer();
}