You are here

protected function InlineEntityIntegrationTest::setUp in Entity Browser 8

Same name and namespace in other branches
  1. 8.2 modules/entity_form/src/Tests/InlineEntityIntegrationTest.php \Drupal\entity_browser_entity_form\Tests\InlineEntityIntegrationTest::setUp()

Overrides BrowserTestBase::setUp

File

modules/entity_form/src/Tests/InlineEntityIntegrationTest.php, line 35

Class

InlineEntityIntegrationTest
Tests integration with Inline entity form.

Namespace

Drupal\entity_browser_entity_form\Tests

Code

protected function setUp() {
  parent::setUp();

  // Delete unnecessary entity browser.
  $browser = $this->container
    ->get('entity_type.manager')
    ->getStorage('entity_browser')
    ->load('entity_browser_test_entity_form');
  $this->container
    ->get('entity_type.manager')
    ->getStorage('entity_browser')
    ->delete([
    $browser,
  ]);
}