Update test code.

This commit is contained in:
James Cole
2018-07-01 09:52:56 +02:00
parent c24cac68f6
commit ce236284f4
4 changed files with 4 additions and 9 deletions

View File

@@ -77,6 +77,7 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
* @property string $amount * @property string $amount
* @property string $foreign_amount * @property string $foreign_amount
* @property TransactionJournal $transactionJournal * @property TransactionJournal $transactionJournal
* @property Account $account
*/ */
class Transaction extends Model class Transaction extends Model
{ {

View File

@@ -30,12 +30,9 @@
<file>app/Http/breadcrumbs.php</file> <file>app/Http/breadcrumbs.php</file>
</exclude> </exclude>
</whitelist> </whitelist>
<blacklist>
<directory>vendor/</directory>
</blacklist>
</filter> </filter>
<logging> <logging>
<log type="coverage-clover" target="./storage/build/clover-specific.xml" charset="UTF-8"/> <log type="coverage-clover" target="./storage/build/clover-specific.xml" />
</logging> </logging>
<php> <php>
<env name="APP_ENV" value="testing"/> <env name="APP_ENV" value="testing"/>

View File

@@ -30,12 +30,9 @@
<file>app/Http/breadcrumbs.php</file> <file>app/Http/breadcrumbs.php</file>
</exclude> </exclude>
</whitelist> </whitelist>
<blacklist>
<directory>vendor/</directory>
</blacklist>
</filter> </filter>
<logging> <logging>
<log type="coverage-clover" target="./storage/build/clover-all.xml" charset="UTF-8"/> <log type="coverage-clover" target="./storage/build/clover-all.xml" />
</logging> </logging>
<php> <php>
<env name="APP_ENV" value="testing"/> <env name="APP_ENV" value="testing"/>

View File

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