Update8401Test.php in Lightning API 8.4
File
tests/src/Functional/Update8401Test.php
View source
<?php
namespace Drupal\Tests\lightning_api\Functional;
use Drupal\FunctionalTests\Update\UpdatePathTestBase;
class Update8401Test extends UpdatePathTestBase {
protected $defaultTheme = 'stark';
protected function setDatabaseDumpFiles() {
$this->databaseDumpFiles = [
$this
->getDrupalRoot() . '/core/modules/system/tests/fixtures/update/drupal-8.8.0.bare.standard.php.gz',
__DIR__ . '/../../fixtures/4.4.0-drupal-8.8.0.bare.standard.update-8401.php.gz',
];
}
public function testUpdate() {
$this->container
->get('keyvalue')
->get('system.schema')
->delete('openapi_redoc');
$this
->assertTrue($this->container
->get('module_handler')
->moduleExists('simple_oauth_extras'));
$this
->runUpdates();
$this
->assertFalse($this->container
->get('module_handler')
->moduleExists('simple_oauth_extras'));
}
}
Classes
Name |
Description |
Update8401Test |
Tests the Lightning API update to uninstall Simple OAuth Extras. |