UpdatePathTest.php in Lightning Layout 8
File
tests/src/Functional/UpdatePathTest.php
View source
<?php
namespace Drupal\Tests\lightning_layout\Functional;
use Drupal\FunctionalTests\Update\UpdatePathTestBase;
use Drush\TestTraits\DrushTestTrait;
class UpdatePathTest extends UpdatePathTestBase {
use DrushTestTrait;
protected function setDatabaseDumpFiles() {
$this->databaseDumpFiles = [
__DIR__ . '/../../fixtures/1.0.0-rc1.php.gz',
];
}
public function testUpdatePath() {
require_once __DIR__ . '/../../update.php';
$this
->runUpdates();
$this
->drush('update:lightning', [], [
'yes' => NULL,
]);
}
}