You are here

protected function EntityBrowserTest::setUp in Entity Browser 8

Same name and namespace in other branches
  1. 8.2 tests/src/Kernel/Extension/EntityBrowserTest.php \Drupal\Tests\entity_browser\Kernel\Extension\EntityBrowserTest::setUp()

Overrides KernelTestBase::setUp

File

tests/src/Kernel/Extension/EntityBrowserTest.php, line 64

Class

EntityBrowserTest
Tests the entity_browser config entity.

Namespace

Drupal\Tests\entity_browser\Kernel\Extension

Code

protected function setUp() {
  FileCacheFactory::setPrefix($this
    ->randomString(4));
  parent::setUp();
  $this->controller = $this->container
    ->get('entity_type.manager')
    ->getStorage('entity_browser');
  $this->widgetUUID = $this->container
    ->get('uuid')
    ->generate();
  $this->routeProvider = $this->container
    ->get('router.route_provider');
  $this
    ->installSchema('system', [
    'router',
    'key_value_expire',
    'sequences',
  ]);
  View::create([
    'id' => 'test_view',
  ])
    ->save();
}