UpdatePathTest.php in Lightning Core 8.5
File
tests/src/Functional/Update/UpdatePathTest.php
View source
<?php
namespace Drupal\Tests\lightning_core\Functional\Update;
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/2.0.0-updated-drupal-8.8.0.php.gz',
];
}
protected function setUp() : void {
parent::setUp();
NodeType::load('page')
->unsetThirdPartySetting('lightning_workflow', 'workflow')
->unsetThirdPartySetting('menu_ui', 'available_menus')
->unsetThirdPartySetting('menu_ui', 'parent')
->save();
}
public function testUpdatePath() : void {
$this
->runUpdates();
$this
->drush('update:lightning', [], [
'yes' => NULL,
]);
}
}