UpdatePathTest.php in Lightning Layout 8.2
File
tests/src/Functional/UpdatePathTest.php
View source
<?php
namespace Drupal\Tests\lightning_layout\Functional;
use Drupal\FunctionalTests\Update\UpdatePathTestBase;
use Drupal\node\Entity\NodeType;
use Drush\TestTraits\DrushTestTrait;
class UpdatePathTest extends UpdatePathTestBase {
use DrushTestTrait;
protected function setDatabaseDumpFiles() {
$this->databaseDumpFiles = [
__DIR__ . '/../../fixtures/drupal-8.8.0-update-from-2.0.0-beta1.php.gz',
];
}
protected function setUp() : void {
parent::setUp();
NodeType::load('landing_page')
->unsetThirdPartySetting('lightning_workflow', 'workflow')
->save();
$node_type = NodeType::load('page');
if ($node_type) {
$node_type
->delete();
}
}
public function testUpdatePath() {
$this
->runUpdates();
$this
->drush('update:lightning', [], [
'yes' => NULL,
]);
}
}