Update amount test codes.

This commit is contained in:
James Cole 2018-07-01 10:32:27 +02:00
parent 3bc9905715
commit b43669e731
2 changed files with 2 additions and 3 deletions

View File

@ -13,7 +13,6 @@ install:
- cp .env.testing .env - cp .env.testing .env
- php artisan clear-compiled - php artisan clear-compiled
- php artisan env - php artisan env
- cp .env.testing .env
- wget -q https://github.com/firefly-iii/test-data/raw/master/storage/database.sqlite -O storage/database/database.sqlite - wget -q https://github.com/firefly-iii/test-data/raw/master/storage/database.sqlite -O storage/database/database.sqlite
- mkdir -p build/logs - mkdir -p build/logs

View File

@ -36,8 +36,8 @@ class AmountCreditTest extends TestCase
public function testConvert(): void public function testConvert(): void
{ {
$values = [ $values = [
'0' => '0.000000000000', '0' => '0',
'0.0' => '0.000000000000', '0.0' => '0',
'0.1' => '0.1', '0.1' => '0.1',
'.2' => '0.2', '.2' => '0.2',
'0.01' => '0.01', '0.01' => '0.01',