You are here

public function UpdatePathTest::testUpdatePath in Lightning Workflow 8.3

Tests Lightning Workflow's database update path.

File

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

Class

UpdatePathTest
Tests Lightning Workflow's database update path.

Namespace

Drupal\Tests\lightning_workflow\Functional

Code

public function testUpdatePath() {
  $this
    ->assertNull(View::load('moderated_content'));
  $this
    ->runUpdates();
  $this
    ->drush('update:lightning', [], [
    'yes' => NULL,
  ]);
  $this
    ->assertInstanceOf(View::class, View::load('moderated_content'));
}