mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-21 00:50:07 +00:00
Improve randomness in test data to prevent key collisions.
This commit is contained in:
@@ -142,8 +142,8 @@ class BillControllerTest extends TestCase
|
||||
|
||||
// data to submit:
|
||||
$data = [
|
||||
'name' => 'New bill #' . random_int(1, 1000),
|
||||
'match' => 'some,words,' . random_int(1, 1000),
|
||||
'name' => 'New bill #' . random_int(1, 10000),
|
||||
'match' => 'some,words,' . random_int(1, 10000),
|
||||
'amount_min' => '66.34',
|
||||
'amount_max' => '45.67',
|
||||
'date' => '2018-01-01',
|
||||
@@ -187,8 +187,8 @@ class BillControllerTest extends TestCase
|
||||
$repository->shouldReceive('getRulesForBill')->withAnyArgs()->andReturn(new Collection());
|
||||
// data to submit:
|
||||
$data = [
|
||||
'name' => 'New bill #' . random_int(1, 1000),
|
||||
'match' => 'some,words,' . random_int(1, 1000),
|
||||
'name' => 'New bill #' . random_int(1, 10000),
|
||||
'match' => 'some,words,' . random_int(1, 10000),
|
||||
'amount_min' => '12.34',
|
||||
'amount_max' => '45.67',
|
||||
'date' => '2018-01-01',
|
||||
@@ -226,8 +226,8 @@ class BillControllerTest extends TestCase
|
||||
$repository->shouldReceive('getRulesForBill')->withAnyArgs()->andReturn(new Collection());
|
||||
// data to submit:
|
||||
$data = [
|
||||
'name' => 'New bill #' . random_int(1, 1000),
|
||||
'match' => 'some,words,' . random_int(1, 1000),
|
||||
'name' => 'New bill #' . random_int(1, 10000),
|
||||
'match' => 'some,words,' . random_int(1, 10000),
|
||||
'amount_min' => '12.34',
|
||||
'amount_max' => '45.67',
|
||||
'date' => '2018-01-01',
|
||||
|
||||
Reference in New Issue
Block a user