UpdatePathTest.php in Lightning Workflow 8.3
File
tests/src/Functional/UpdatePathTest.php
View source
<?php
namespace Drupal\Tests\lightning_workflow\Functional;
use Drupal\FunctionalTests\Update\UpdatePathTestBase;
use Drupal\views\Entity\View;
use Drush\TestTraits\DrushTestTrait;
class UpdatePathTest extends UpdatePathTestBase {
use DrushTestTrait;
protected function setDatabaseDumpFiles() {
$this->databaseDumpFiles = [
__DIR__ . '/../../fixtures/drupal-8.8.0-update-from-1.0.0-rc2.php.gz',
];
}
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'));
}
}