From ea3e2f4a56accf4407da26baaa21ca6ee81fe6c8 Mon Sep 17 00:00:00 2001 From: Haydar Kulekci Date: Fri, 17 Feb 2023 12:43:23 +0300 Subject: [PATCH] rand() function changed as random_int() --- tests/Feature/ImportCommandTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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();