You are here

protected function LocalTaskManagerTest::setUp in Drupal 8

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/Menu/LocalTaskManagerTest.php, line 100

Class

LocalTaskManagerTest
@coversDefaultClass \Drupal\Core\Menu\LocalTaskManager @group Menu

Namespace

Drupal\Tests\Core\Menu

Code

protected function setUp() {
  parent::setUp();
  $this->argumentResolver = $this
    ->createMock('Symfony\\Component\\HttpKernel\\Controller\\ArgumentResolverInterface');
  $this->request = new Request();
  $this->routeProvider = $this
    ->createMock('Drupal\\Core\\Routing\\RouteProviderInterface');
  $this->pluginDiscovery = $this
    ->createMock('Drupal\\Component\\Plugin\\Discovery\\DiscoveryInterface');
  $this->factory = $this
    ->createMock('Drupal\\Component\\Plugin\\Factory\\FactoryInterface');
  $this->cacheBackend = $this
    ->createMock('Drupal\\Core\\Cache\\CacheBackendInterface');
  $this->accessManager = $this
    ->createMock('Drupal\\Core\\Access\\AccessManagerInterface');
  $this->routeMatch = $this
    ->createMock('Drupal\\Core\\Routing\\RouteMatchInterface');
  $this->account = $this
    ->createMock('Drupal\\Core\\Session\\AccountInterface');
  $this
    ->setupLocalTaskManager();
  $this
    ->setupNullCacheabilityMetadataValidation();
}