You are here

public function Update8007Test::testUpdate in Lightning Core 8.4

Same name and namespace in other branches
  1. 8.5 tests/src/Kernel/Update/Update8007Test.php \Drupal\Tests\lightning_core\Kernel\Update\Update8007Test::testUpdate()
  2. 8.2 tests/src/Kernel/Update/Update8007Test.php \Drupal\Tests\lightning_core\Kernel\Update\Update8007Test::testUpdate()
  3. 8.3 tests/src/Kernel/Update/Update8007Test.php \Drupal\Tests\lightning_core\Kernel\Update\Update8007Test::testUpdate()

Overrides Update8006Test::testUpdate

File

tests/src/Kernel/Update/Update8007Test.php, line 12

Class

Update8007Test
@group lightning_core

Namespace

Drupal\Tests\lightning_core\Kernel\Update

Code

public function testUpdate() {
  parent::testUpdate();
  lightning_core_update_8007();
  $factory = $this->container
    ->get('config.factory');
  $this
    ->assertFalse($factory
    ->get(UpdateManager::CONFIG_NAME)
    ->isNew());
  $this
    ->assertTrue($factory
    ->get('lightning.versions')
    ->isNew());
}