mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Improve test coverage.
This commit is contained in:
@@ -255,8 +255,7 @@ trait AccountServiceTrait
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return true;
|
||||
return true; // @codeCoverageIgnore
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -45,7 +45,7 @@ trait BillServiceTrait
|
||||
if (0 === strlen($note)) {
|
||||
$dbNote = $bill->notes()->first();
|
||||
if (null !== $dbNote) {
|
||||
$dbNote->delete();
|
||||
$dbNote->delete(); // @codeCoverageIgnore
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
@@ -23,7 +23,6 @@ declare(strict_types=1);
|
||||
|
||||
namespace FireflyIII\Services\Internal\Update;
|
||||
|
||||
use FireflyIII\Exceptions\FireflyException;
|
||||
use FireflyIII\Models\Transaction;
|
||||
use FireflyIII\Services\Internal\Support\TransactionServiceTrait;
|
||||
use FireflyIII\User;
|
||||
@@ -70,7 +69,6 @@ class TransactionUpdateService
|
||||
* @param array $data
|
||||
*
|
||||
* @return Transaction
|
||||
* @throws FireflyException
|
||||
*/
|
||||
public function update(Transaction $transaction, array $data): Transaction
|
||||
{
|
||||
@@ -159,6 +157,6 @@ class TransactionUpdateService
|
||||
$category = $this->findCategory(0, $category);
|
||||
$this->setCategory($transaction, $category);
|
||||
|
||||
return $category;
|
||||
return $transaction;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user