mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Update test code.
This commit is contained in:
@@ -376,8 +376,14 @@ class TestConfiguration
|
||||
return 'ccAsset';
|
||||
case 'static-monthlyFull':
|
||||
return 'monthlyFull';
|
||||
case 'static-one':
|
||||
return 1;
|
||||
case 'static-journal-type':
|
||||
return 'TransactionJournal';
|
||||
case 'random-liability-type':
|
||||
return $faker->randomElement(['loan', 'debt', 'mortgage']);
|
||||
case 'random-journal-id':
|
||||
return $faker->numberBetween(1,25);
|
||||
case 'random-amount':
|
||||
return number_format($faker->randomFloat(2, 10, 100), 2);
|
||||
case 'random-percentage':
|
||||
@@ -411,6 +417,8 @@ class TestConfiguration
|
||||
return $faker->numberBetween(1, 12);
|
||||
case 'null':
|
||||
return null;
|
||||
case 'random-attachment-type':
|
||||
return $faker->randomElement(['Account', 'Budget', 'Bill', 'TransactionJournal', 'PiggyBank','Tag',]);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user