You are here

protected function KernelTestBasePlugin::setUp in IMCE 8

Same name and namespace in other branches
  1. 8.2 tests/src/Kernel/Plugin/KernelTestBasePlugin.php \Drupal\Tests\imce\Kernel\Plugin\KernelTestBasePlugin::setUp()

Overrides KernelTestBase::setUp

6 calls to KernelTestBasePlugin::setUp()
CoreTest::setUp in tests/src/Kernel/Plugin/ImcePlugin/CoreTest.php
DeleteTest::setUp in tests/src/Kernel/Plugin/ImcePlugin/DeleteTest.php
ImceFolderTest::setUp in tests/src/Kernel/ImceFolderTest.php
NewFolderTest::setUp in tests/src/Kernel/Plugin/ImcePlugin/NewFolderTest.php
ResizeTest::setUp in tests/src/Kernel/Plugin/ImcePlugin/ResizeTest.php

... See full list

6 methods override KernelTestBasePlugin::setUp()
CoreTest::setUp in tests/src/Kernel/Plugin/ImcePlugin/CoreTest.php
DeleteTest::setUp in tests/src/Kernel/Plugin/ImcePlugin/DeleteTest.php
ImceFolderTest::setUp in tests/src/Kernel/ImceFolderTest.php
NewFolderTest::setUp in tests/src/Kernel/Plugin/ImcePlugin/NewFolderTest.php
ResizeTest::setUp in tests/src/Kernel/Plugin/ImcePlugin/ResizeTest.php

... See full list

File

tests/src/Kernel/Plugin/KernelTestBasePlugin.php, line 43

Class

KernelTestBasePlugin
The abstract class base to imce kernel tests.

Namespace

Drupal\Tests\imce\Kernel\Plugin

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installSchema('system', [
    'sequences',
  ]);
  $this
    ->installConfig(static::$modules);
  $this
    ->installEntitySchema('user');
  $this
    ->installEntitySchema('file');
  $this
    ->installSchema('file', [
    'file_usage',
  ]);
  $this
    ->setUpCurrentUser([
    'uid' => 1,
  ], [
    'access user profiles',
    'administer imce',
    'access files overview',
  ], TRUE);
}