firefly-iii/app/tests/factories/TransactionCurrency.php
2015-01-01 13:43:34 +01:00

31 lines
1.1 KiB
PHP

<?php
League\FactoryMuffin\Facade::define(
'TransactionCurrency', [
'code' => function () {
$code = '';
for ($i = 0; $i < 3; $i++) {
$code .= chr(rand(65, 90));
}
return $code;
},
'name' => function () {
$code = '';
for ($i = 0; $i < 8; $i++) {
$code .= chr(rand(65, 90));
}
return $code;
},
'symbol' => function () {
$code = '';
for ($i = 0; $i < 2; $i++) {
$code .= chr(rand(65, 90));
}
return $code;
}
]
);