You are here

public function TestUpdateManager::getTasks 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::getTasks()
  2. 8 tests/src/Unit/UpdateManagerTest.php \Drupal\Tests\lightning_core\Unit\TestUpdateManager::getTasks()
  3. 8.3 tests/src/Unit/UpdateManagerTest.php \Drupal\Tests\lightning_core\Unit\TestUpdateManager::getTasks()
  4. 8.4 tests/src/Unit/UpdateManagerTest.php \Drupal\Tests\lightning_core\Unit\TestUpdateManager::getTasks()

Returns all available tasks for a specific update.

Parameters

object $handler: The task handler.

Return value

\Generator An iterable of UpdateTask objects.

Overrides UpdateManager::getTasks

File

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

Class

TestUpdateManager
Exposes protected UpdateManager methods for testing.

Namespace

Drupal\Tests\lightning_core\Unit

Code

public function getTasks($handler) {
  return parent::getTasks($handler);
}