Skip to content

Commit

Permalink
Update everyThirtyMinutes cron expression (#52662)
Browse files Browse the repository at this point in the history
* Update cron syntax for better readability

* Update test
  • Loading branch information
SamuelNitsche authored Sep 5, 2024
1 parent 4579141 commit 9ec747f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Illuminate/Console/Scheduling/ManagesFrequencies.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public function everyFifteenMinutes()
*/
public function everyThirtyMinutes()
{
return $this->spliceIntoPosition(1, '0,30');
return $this->spliceIntoPosition(1, '*/30');
}

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/Console/Scheduling/FrequencyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 9ec747f

Please sign in to comment.