diff --git a/tests/Feature/ImportCommandTest.php b/tests/Feature/ImportCommandTest.php index e199f68..f973ab9 100644 --- a/tests/Feature/ImportCommandTest.php +++ b/tests/Feature/ImportCommandTest.php @@ -22,11 +22,11 @@ public function test_import_entites(): void $dispatcher = Product::getEventDispatcher(); Product::unsetEventDispatcher(); - $productsAmount = rand(1, 5); + $productsAmount = random_int(1, 5); factory(Product::class, $productsAmount)->create(); - $productsUnsearchableAmount = rand(1, 5); + $productsUnsearchableAmount = random_int(1, 5); factory(Product::class, $productsUnsearchableAmount)->states(['archive'])->create(); Product::setEventDispatcher($dispatcher); @@ -53,7 +53,7 @@ public function test_import_entites_in_queue(): void $dispatcher = Product::getEventDispatcher(); Product::unsetEventDispatcher(); - $productsAmount = rand(1, 5); + $productsAmount = random_int(1, 5); factory(Product::class, $productsAmount)->create(); Product::setEventDispatcher($dispatcher); @@ -137,7 +137,7 @@ public function test_remove_old_index_after_switching_to_new(): void $dispatcher = Product::getEventDispatcher(); Product::unsetEventDispatcher(); - $productsAmount = rand(1, 5); + $productsAmount = random_int(1, 5); factory(Product::class, $productsAmount)->create();