You are here

public function ModuleInstallTest::testUnknownUndiscoverableVersion in Lightning Core 8

Same name and namespace in other branches
  1. 8.5 tests/src/Kernel/ModuleInstallTest.php \Drupal\Tests\lightning_core\Kernel\ModuleInstallTest::testUnknownUndiscoverableVersion()
  2. 8.2 tests/src/Kernel/ModuleInstallTest.php \Drupal\Tests\lightning_core\Kernel\ModuleInstallTest::testUnknownUndiscoverableVersion()
  3. 8.3 tests/src/Kernel/ModuleInstallTest.php \Drupal\Tests\lightning_core\Kernel\ModuleInstallTest::testUnknownUndiscoverableVersion()
  4. 8.4 tests/src/Kernel/ModuleInstallTest.php \Drupal\Tests\lightning_core\Kernel\ModuleInstallTest::testUnknownUndiscoverableVersion()

@depends testUnknownDiscoverableVersion

File

tests/src/Kernel/ModuleInstallTest.php, line 74

Class

ModuleInstallTest
@group lightning @group lightning_core

Namespace

Drupal\Tests\lightning_core\Kernel

Code

public function testUnknownUndiscoverableVersion() {
  lightning_core_modules_installed([
    'fubar',
  ]);
  $version = $this->container
    ->get('config.factory')
    ->get(UpdateManager::CONFIG_NAME)
    ->get('fubar');
  $this
    ->assertSame(UpdateManager::VERSION_UNKNOWN, $version);
}