Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit 882c060

Browse files
committed
nitpicks
1 parent 50db45a commit 882c060

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/Commands/CleanStatisticsTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use BeyondCode\LaravelWebSockets\Statistics\Models\WebSocketsStatisticsEntry;
77
use Carbon\Carbon;
88
use BeyondCode\LaravelWebSockets\Tests\TestCase;
9+
use Illuminate\Support\Collection;
910

1011
class CleanStatisticsTest extends TestCase
1112
{
@@ -23,7 +24,7 @@ public function setUp()
2324
/** @test */
2425
public function it_can_clean_the_statistics()
2526
{
26-
collect(range(1, 60))->each(function (int $index) {
27+
Collection::times(60)->each(function (int $index) {
2728
WebSocketsStatisticsEntry::create([
2829
'app_id' => 'app_id',
2930
'peak_connection_count' => 1,

0 commit comments

Comments
 (0)