firefly-iii/app/tests/factories/TransactionCurrency.php

31 lines
1.1 KiB
PHP
Raw Normal View History

2014-11-25 14:04:00 -06:00
<?php
League\FactoryMuffin\Facade::define(
'TransactionCurrency', [
2015-01-01 06:32:31 -06:00
'code' => function () {
$code = '';
for ($i = 0; $i < 3; $i++) {
$code .= chr(rand(65, 90));
}
return $code;
},
2015-01-01 06:43:34 -06:00
'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;
}
2015-01-01 06:32:31 -06:00
]
2014-11-25 14:04:00 -06:00
);