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