You are here

Update8006Test.php in Lightning Core 8.3

File

tests/src/Kernel/Update/Update8006Test.php
View 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

Namesort descending Description
Update8006Test @group lightning_core