From 882c060817a6dfd34ad4c45017956618b723e5e5 Mon Sep 17 00:00:00 2001 From: freek Date: Tue, 4 Dec 2018 20:59:43 +0100 Subject: [PATCH] nitpicks --- tests/Commands/CleanStatisticsTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Commands/CleanStatisticsTest.php b/tests/Commands/CleanStatisticsTest.php index 9ac6d05..978ad68 100644 --- a/tests/Commands/CleanStatisticsTest.php +++ b/tests/Commands/CleanStatisticsTest.php @@ -6,6 +6,7 @@ use Artisan; use BeyondCode\LaravelWebSockets\Statistics\Models\WebSocketsStatisticsEntry; use Carbon\Carbon; use BeyondCode\LaravelWebSockets\Tests\TestCase; +use Illuminate\Support\Collection; class CleanStatisticsTest extends TestCase { @@ -23,7 +24,7 @@ class CleanStatisticsTest extends TestCase /** @test */ public function it_can_clean_the_statistics() { - collect(range(1, 60))->each(function (int $index) { + Collection::times(60)->each(function (int $index) { WebSocketsStatisticsEntry::create([ 'app_id' => 'app_id', 'peak_connection_count' => 1,