You are here

public function PendingUpdatesValidatorTest::testPendingPostUpdate in Automatic Updates 8.2

Tests that an error is raised if there are pending post-updates.

File

tests/src/Kernel/ReadinessValidation/PendingUpdatesValidatorTest.php, line 47

Class

PendingUpdatesValidatorTest
@covers \Drupal\automatic_updates\Validator\PendingUpdatesValidator

Namespace

Drupal\Tests\automatic_updates\Kernel\ReadinessValidation

Code

public function testPendingPostUpdate() : void {
  require __DIR__ . '/../../../fixtures/post_update.php';
  $result = ValidationResult::createError([
    'Some modules have database schema updates to install. You should run the <a href="/update.php">database update script</a> immediately.',
  ]);
  $this
    ->assertCheckerResultsFromManager([
    $result,
  ], TRUE);
}