You are here

public function UpdatePathTest::testUpdatePath in Lightning API 8.4

Tests Lightning API's database update path.

File

tests/src/Functional/UpdatePathTest.php, line 30

Class

UpdatePathTest
Tests Lightning API's database update path.

Namespace

Drupal\Tests\lightning_api\Functional

Code

public function testUpdatePath() {
  $this
    ->config('core.extension')
    ->clear('module.openapi_redoc')
    ->save();
  $this->container
    ->get('keyvalue')
    ->get('system.schema')
    ->delete('openapi_redoc');
  $this
    ->config('entity_browser.browser.media_browser')
    ->delete();
  $this
    ->config('media.type.tweet')
    ->delete();
  $this
    ->runUpdates();
  $this
    ->drush('update:lightning', [], [
    'yes' => NULL,
  ]);
}