install/Helper/Currency.php 1 location
|
@@ 14-22 (lines=9) @@
|
| 11 |
|
Intraface_Doctrine_Intranet::singleton(1); |
| 12 |
|
} |
| 13 |
|
|
| 14 |
|
public function create() |
| 15 |
|
{ |
| 16 |
|
$currency = new Intraface_modules_currency_Currency; |
| 17 |
|
$type = new Intraface_modules_currency_Currency_Type; |
| 18 |
|
$currency->setType($type->getByIsoCode('EUR')); |
| 19 |
|
$currency->save(); |
| 20 |
|
|
| 21 |
|
return $currency; |
| 22 |
|
} |
| 23 |
|
|
| 24 |
|
public function createWithExchangeRates() |
| 25 |
|
{ |
tests/unit/Currency/ExchangeRateTest.php 1 location
|
@@ 15-22 (lines=8) @@
|
| 12 |
|
$db->query('TRUNCATE currency_exchangerate'); |
| 13 |
|
} |
| 14 |
|
|
| 15 |
|
function createCurrency() |
| 16 |
|
{ |
| 17 |
|
$object = new Intraface_modules_currency_Currency; |
| 18 |
|
$type = new Intraface_modules_currency_Currency_Type; |
| 19 |
|
$object->setType($type->getByIsoCode('EUR')); |
| 20 |
|
$object->save(); |
| 21 |
|
return $object; |
| 22 |
|
} |
| 23 |
|
|
| 24 |
|
/////////////////////////////////////////////////////// |
| 25 |
|
|