Skip to content
Snippets Groups Projects

Issue #3252126: Detect DB updates and do not apply a update via cron if there is a DB update

1 file
+ 7
2
Compare changes
  • Side-by-side
  • Inline
@@ -58,8 +58,13 @@ class StagedUpdateFunctionsValidatorTest extends AutomaticUpdatesKernelTestBase
* Tests that no errors are raised if staged files are unchanged.
*/
public function testNoChanges(): void {
$this->container->get('automatic_updates.updater')->apply();
$this->assertTrue(TRUE);
try {
$this->container->get('automatic_updates.updater')->apply();
}
catch (StageValidationException $e) {
print_r($e->getResults());
$this->fail('sadness');
}
}
/**
Loading