From a2ea3d69ebf7563a9b01e83ba511a6a909917740 Mon Sep 17 00:00:00 2001 From: Samuel Nitsche Date: Thu, 5 Sep 2024 18:13:13 +0200 Subject: [PATCH 1/2] Update cron syntax for better readability --- src/Illuminate/Console/Scheduling/ManagesFrequencies.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Console/Scheduling/ManagesFrequencies.php b/src/Illuminate/Console/Scheduling/ManagesFrequencies.php index cc797b69e521..d974a91b769e 100644 --- a/src/Illuminate/Console/Scheduling/ManagesFrequencies.php +++ b/src/Illuminate/Console/Scheduling/ManagesFrequencies.php @@ -234,7 +234,7 @@ public function everyFifteenMinutes() */ public function everyThirtyMinutes() { - return $this->spliceIntoPosition(1, '0,30'); + return $this->spliceIntoPosition(1, '*/30'); } /** From ce6789a0f81ac60772c0a2ad8a5ce23c8eb7bc12 Mon Sep 17 00:00:00 2001 From: Samuel Nitsche Date: Thu, 5 Sep 2024 18:17:05 +0200 Subject: [PATCH 2/2] Update test --- tests/Console/Scheduling/FrequencyTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Console/Scheduling/FrequencyTest.php b/tests/Console/Scheduling/FrequencyTest.php index fa9a8ea167f1..17cc6f398814 100644 --- a/tests/Console/Scheduling/FrequencyTest.php +++ b/tests/Console/Scheduling/FrequencyTest.php @@ -37,7 +37,7 @@ public function testEveryXMinutes() $this->assertSame('*/5 * * * *', $this->event->everyFiveMinutes()->getExpression()); $this->assertSame('*/10 * * * *', $this->event->everyTenMinutes()->getExpression()); $this->assertSame('*/15 * * * *', $this->event->everyFifteenMinutes()->getExpression()); - $this->assertSame('0,30 * * * *', $this->event->everyThirtyMinutes()->getExpression()); + $this->assertSame('*/30 * * * *', $this->event->everyThirtyMinutes()->getExpression()); } public function testDaily()