Skip to content
Snippets Groups Projects
Commit 70160d20 authored by Ted Bowman's avatar Ted Bowman
Browse files

Contrib: in 11.x another request is needed to trigger automated cron -...

Contrib: in 11.x another request is needed to trigger automated cron - project/automatic_updates@0dbd3ff7
parent 1e887a96
No related branches found
No related tags found
No related merge requests found
......@@ -157,10 +157,12 @@ public function testAutomatedCron(): void {
$this->createTestProject('RecommendedProject');
$this->installModules(['automated_cron']);
// Reset the record of the last cron run, so that Automated Cron will be
// triggered at the end of this request.
// Reset the record of the last cron run.
$this->visit('/automatic-updates-test-api/reset-cron');
$this->getMink()->assertSession()->pageTextContains('cron reset');
// Make another request so that Automated Cron will be triggered at the end
// of the request.
$this->visit('/');
$this->assertExpectedStageEventsFired(ConsoleUpdateStage::class, wait: 360);
$this->assertCronUpdateSuccessful();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment