You are here

final class TestUpdateManager in Lightning Core 8.2

Same name and namespace in other branches
  1. 8.5 tests/src/Unit/UpdateManagerTest.php \Drupal\Tests\lightning_core\Unit\TestUpdateManager
  2. 8 tests/src/Unit/UpdateManagerTest.php \Drupal\Tests\lightning_core\Unit\TestUpdateManager
  3. 8.3 tests/src/Unit/UpdateManagerTest.php \Drupal\Tests\lightning_core\Unit\TestUpdateManager
  4. 8.4 tests/src/Unit/UpdateManagerTest.php \Drupal\Tests\lightning_core\Unit\TestUpdateManager

Exposes protected UpdateManager methods for testing.

Hierarchy

Expanded class hierarchy of TestUpdateManager

File

tests/src/Unit/UpdateManagerTest.php, line 68

Namespace

Drupal\Tests\lightning_core\Unit
View source
final class TestUpdateManager extends UpdateManager {
  public function getTasks($handler) {
    return parent::getTasks($handler);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
TestUpdateManager::getTasks public function Returns all available tasks for a specific update. Overrides UpdateManager::getTasks
UpdateManager::$classResolver protected property The class resolver service.
UpdateManager::$configFactory protected property The config factory service.
UpdateManager::$discovery protected property The update discovery object.
UpdateManager::$docBlockFactory protected property The doc block factory.
UpdateManager::CONFIG_NAME constant Name of the config object which stores version numbers.
UpdateManager::executeAllInConsole public function Executes all available updates in a console context.
UpdateManager::getAvailable public function Returns all available update definitions.
UpdateManager::getDefinitions public function Returns all update definitions, optionally filtered by provider module.
UpdateManager::getVersion public function Tries to determine the semantic version of a module.
UpdateManager::toSemanticVersion public static function Converts a drupal.org version number to a semantic version.
UpdateManager::VERSION_UNKNOWN constant Fallback version number used when a module does not declare it.
UpdateManager::__construct public function UpdateCommand constructor.