@@ -22,11 +22,11 @@ public function test_import_entites(): void
22
22
$ dispatcher = Product::getEventDispatcher ();
23
23
Product::unsetEventDispatcher ();
24
24
25
- $ productsAmount = rand (1 , 5 );
25
+ $ productsAmount = random_int (1 , 5 );
26
26
27
27
factory (Product::class, $ productsAmount )->create ();
28
28
29
- $ productsUnsearchableAmount = rand (1 , 5 );
29
+ $ productsUnsearchableAmount = random_int (1 , 5 );
30
30
factory (Product::class, $ productsUnsearchableAmount )->states (['archive ' ])->create ();
31
31
32
32
Product::setEventDispatcher ($ dispatcher );
@@ -53,7 +53,7 @@ public function test_import_entites_in_queue(): void
53
53
$ dispatcher = Product::getEventDispatcher ();
54
54
Product::unsetEventDispatcher ();
55
55
56
- $ productsAmount = rand (1 , 5 );
56
+ $ productsAmount = random_int (1 , 5 );
57
57
factory (Product::class, $ productsAmount )->create ();
58
58
59
59
Product::setEventDispatcher ($ dispatcher );
@@ -137,7 +137,7 @@ public function test_remove_old_index_after_switching_to_new(): void
137
137
$ dispatcher = Product::getEventDispatcher ();
138
138
Product::unsetEventDispatcher ();
139
139
140
- $ productsAmount = rand (1 , 5 );
140
+ $ productsAmount = random_int (1 , 5 );
141
141
142
142
factory (Product::class, $ productsAmount )->create ();
143
143
0 commit comments