You are here

protected function BasicUsageTest::setUp in Lightning API 8.4

Overrides BrowserTestBase::setUp

File

tests/src/Functional/BasicUsageTest.php, line 28

Class

BasicUsageTest
Tests very basic administrator-facing functionality of Lightning API.

Namespace

Drupal\Tests\lightning_api\Functional

Code

protected function setUp() {
  parent::setUp();
  $this
    ->config('lightning_api.settings')
    ->set('entity_json', TRUE)
    ->set('bundle_docs', TRUE)
    ->save();
  $this
    ->drupalCreateContentType([
    'type' => 'test',
  ]);
  $this
    ->drupalCreateNode([
    'type' => 'test',
  ]);
  $this->container
    ->get('entity_type.bundle.info')
    ->clearCachedBundles();
}