tests/TestCase/Controller/Component/CurrencyConverterComponentTest.php 1 location
|
@@ 72-81 (lines=10) @@
|
| 69 |
|
$this->Table = $table; |
| 70 |
|
} |
| 71 |
|
|
| 72 |
|
public function testConfig() |
| 73 |
|
{ |
| 74 |
|
$this->CurrencyConverter = new CurrencyConverterComponent($this->Registry, []); |
| 75 |
|
$expected = [ |
| 76 |
|
'database' => 2, |
| 77 |
|
'refresh' => 24, |
| 78 |
|
'decimal' => 2 |
| 79 |
|
]; |
| 80 |
|
$this->assertEquals($expected, $this->CurrencyConverter->getConfig()); |
| 81 |
|
} |
| 82 |
|
|
| 83 |
|
public function testConvertSameCurrency() |
| 84 |
|
{ |
tests/TestCase/View/Helper/CurrencyConverterHelperTest.php 1 location
|
@@ 72-81 (lines=10) @@
|
| 69 |
|
$this->Table = $table; |
| 70 |
|
} |
| 71 |
|
|
| 72 |
|
public function testConfig() |
| 73 |
|
{ |
| 74 |
|
$this->Component = new CurrencyConverterHelper($this->View, []); |
| 75 |
|
$expected = [ |
| 76 |
|
'database' => 2, |
| 77 |
|
'refresh' => 24, |
| 78 |
|
'decimal' => 2 |
| 79 |
|
]; |
| 80 |
|
$this->assertEquals($expected, $this->Component->getConfig()); |
| 81 |
|
} |
| 82 |
|
|
| 83 |
|
public function testConvertSameCurrency() |
| 84 |
|
{ |