public function PendingDbUpdatesTest::testPendingDbUpdates in Automatic Updates 8
Tests pending db updates readiness checks.
File
- tests/
src/ Kernel/ ReadinessChecker/ PendingDbUpdatesTest.php, line 25
Class
- PendingDbUpdatesTest
- Tests pending db updates readiness checking.
Namespace
Drupal\Tests\automatic_updates\Kernel\ReadinessCheckerCode
public function testPendingDbUpdates() {
$messages = $this->container
->get('automatic_updates.pending_db_updates')
->run();
$this
->assertEmpty($messages);
$messages = (new TestPendingDbUpdates())
->run();
self::assertEquals('There are pending database updates. Please run update.php.', $messages[0]);
}