Skip to content

Commit ea3e2f4

Browse files
committed
rand() function changed as random_int()
1 parent 292f852 commit ea3e2f4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/Feature/ImportCommandTest.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ public function test_import_entites(): void
2222
$dispatcher = Product::getEventDispatcher();
2323
Product::unsetEventDispatcher();
2424

25-
$productsAmount = rand(1, 5);
25+
$productsAmount = random_int(1, 5);
2626

2727
factory(Product::class, $productsAmount)->create();
2828

29-
$productsUnsearchableAmount = rand(1, 5);
29+
$productsUnsearchableAmount = random_int(1, 5);
3030
factory(Product::class, $productsUnsearchableAmount)->states(['archive'])->create();
3131

3232
Product::setEventDispatcher($dispatcher);
@@ -53,7 +53,7 @@ public function test_import_entites_in_queue(): void
5353
$dispatcher = Product::getEventDispatcher();
5454
Product::unsetEventDispatcher();
5555

56-
$productsAmount = rand(1, 5);
56+
$productsAmount = random_int(1, 5);
5757
factory(Product::class, $productsAmount)->create();
5858

5959
Product::setEventDispatcher($dispatcher);
@@ -137,7 +137,7 @@ public function test_remove_old_index_after_switching_to_new(): void
137137
$dispatcher = Product::getEventDispatcher();
138138
Product::unsetEventDispatcher();
139139

140-
$productsAmount = rand(1, 5);
140+
$productsAmount = random_int(1, 5);
141141

142142
factory(Product::class, $productsAmount)->create();
143143

0 commit comments

Comments
 (0)