Update8006Test.php in Lightning Core 8.3
Same filename in this branch
Same filename and directory in other branches
File
tests/src/Kernel/Update/Update8006Test.phpView source
<?php
namespace Drupal\Tests\lightning_core\Kernel\Update;
use Drupal\KernelTests\KernelTestBase;
use Drupal\lightning_core\UpdateManager;
/**
* @group lightning_core
*/
class Update8006Test extends KernelTestBase {
/**
* {@inheritdoc}
*/
protected static $modules = [
'lightning_core',
'system',
'user',
];
/**
* {@inheritdoc}
*/
protected $strictConfigSchema = FALSE;
public function testUpdate() {
module_load_install('lightning_core');
lightning_core_update_8006();
$config = $this->container
->get('config.factory')
->get('lightning.versions');
foreach (static::$modules as $module) {
$this
->assertSame(UpdateManager::VERSION_UNKNOWN, $config
->get($module));
}
}
}
Classes
Name | Description |
---|---|
Update8006Test | @group lightning_core |