mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-20 08:30:06 +00:00
Improve test coverage.
This commit is contained in:
@@ -66,6 +66,7 @@ class TransactionCurrencyFactoryTest extends TestCase
|
||||
{
|
||||
/** @var TransactionCurrencyFactory $factory */
|
||||
$factory = app(TransactionCurrencyFactory::class);
|
||||
Log::warning('The following error is part of a test.');
|
||||
$result = $factory->create(['name' => null, 'code' => null, 'symbol' => null, 'decimal_places' => null, 'enabled' => true]);
|
||||
$this->assertNull($result);
|
||||
}
|
||||
@@ -100,7 +101,6 @@ class TransactionCurrencyFactoryTest extends TestCase
|
||||
*/
|
||||
public function testFindByCode(): void
|
||||
{
|
||||
// ;
|
||||
$currency = TransactionCurrency::inRandomOrder()->whereNull('deleted_at')->first();
|
||||
/** @var TransactionCurrencyFactory $factory */
|
||||
$factory = app(TransactionCurrencyFactory::class);
|
||||
|
||||
Reference in New Issue
Block a user