Update8022Test.php in Lightning Media 8.4
File
tests/src/Kernel/Update/Update8022Test.phpView source
<?php
namespace Drupal\Tests\lightning_media\Kernel\Update;
use Drupal\KernelTests\KernelTestBase;
/**
* Tests Lightning Media's 8022 update hook.
*
* @group lightning_media
*/
class Update8022Test extends KernelTestBase {
/**
* {@inheritdoc}
*/
protected static $modules = [
'lightning_media',
'media',
'system',
];
/**
* Tests Lightning Media's 8022 update hook.
*/
public function testUpdate() {
$setting = $this
->config('lightning_media.settings')
->get('revision_ui');
$this
->assertNull($setting);
module_load_install('lightning_media');
lightning_media_update_8022();
$setting = $this
->config('lightning_media.settings')
->get('revision_ui');
$this
->assertTrue($setting);
}
}
Classes
Name | Description |
---|---|
Update8022Test | Tests Lightning Media's 8022 update hook. |