mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 16:57:09 +00:00
Update test code.
This commit is contained in:
@@ -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
|
||||||
{
|
{
|
||||||
|
@@ -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"/>
|
||||||
|
@@ -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"/>
|
||||||
|
@@ -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',
|
||||||
|
Reference in New Issue
Block a user