mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Expand test coverage.
This commit is contained in:
parent
2dfe2ddaf3
commit
1bfa8f0139
@ -18,24 +18,12 @@ use Tests\TestCase;
|
||||
/**
|
||||
* Class AmountTest
|
||||
*
|
||||
* 0, 0.0, 0.1, 0.01
|
||||
* 1, 1.0, 1.1, 1.12, 1.10
|
||||
* 12, 12.3, 12.34
|
||||
* 123, 123.4, 123.45
|
||||
* 1234, 1234.5, 1234.56
|
||||
* 1 234, 1 234.5, 1 234.56
|
||||
* 1.234, 1.234.5, 1.234.56
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* @package Tests\Unit\Import\Converter
|
||||
*/
|
||||
class AmountTest extends TestCase
|
||||
{
|
||||
/**
|
||||
*
|
||||
* @covers \FireflyIII\Import\Converter\Amount::convert()
|
||||
*/
|
||||
public function testConvert()
|
||||
{
|
||||
@ -91,8 +79,16 @@ class AmountTest extends TestCase
|
||||
$result = $converter->convert($value);
|
||||
$this->assertEquals($expected, $result);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Import\Converter\Amount::convert()
|
||||
*/
|
||||
public function testConvertNull()
|
||||
{
|
||||
$converter = new Amount;
|
||||
$result = $converter->convert(null);
|
||||
$this->assertEquals('0', $result);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user