diff --git a/tests/CacheAwareConnectionProxyTest.php b/tests/CacheAwareConnectionProxyTest.php index dd5a851..0f6682b 100644 --- a/tests/CacheAwareConnectionProxyTest.php +++ b/tests/CacheAwareConnectionProxyTest.php @@ -17,6 +17,7 @@ use LogicException; use Mockery; use Orchestra\Testbench\Attributes\WithMigration; + use function floor; use function max; use function now; @@ -37,7 +38,7 @@ protected function setUp(): void 'email_verified_at' => today(), ])->toArray()); - $this->app->make('db')->table('posts')->insert(Collection::times(6, fn($i) => [ + $this->app->make('db')->table('posts')->insert(Collection::times(6, fn ($i) => [ 'title' => $this->faker->text(20), 'user_id' => (int) floor(max(1, $i / 2)), ])->toArray());