You are here

public function ReadinessCheckerTest::testReadinessChecker in Automatic Updates 8

Tests the functionality of readiness checks.

File

tests/src/Kernel/ReadinessChecker/ReadinessCheckerTest.php, line 26

Class

ReadinessCheckerTest
Tests automatic updates readiness checking.

Namespace

Drupal\Tests\automatic_updates\Kernel\ReadinessChecker

Code

public function testReadinessChecker() {

  /** @var \Drupal\automatic_updates\ReadinessChecker\ReadinessCheckerManagerInterface $checker */
  $checker = $this->container
    ->get('automatic_updates.readiness_checker');
  foreach ($checker
    ->getCategories() as $category) {
    $this
      ->assertEmpty($checker
      ->run($category));
  }
}