UpdatePathTest.php in Lightning API 8.4
File
tests/src/Functional/UpdatePathTest.php
View source
<?php
namespace Drupal\Tests\lightning_api\Functional;
use Drupal\FunctionalTests\Update\UpdatePathTestBase;
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-rc1.php.gz',
];
}
public function testUpdatePath() {
$this
->config('core.extension')
->clear('module.openapi_redoc')
->save();
$this->container
->get('keyvalue')
->get('system.schema')
->delete('openapi_redoc');
$this
->config('entity_browser.browser.media_browser')
->delete();
$this
->config('media.type.tweet')
->delete();
$this
->runUpdates();
$this
->drush('update:lightning', [], [
'yes' => NULL,
]);
}
}