mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fix tests, improve coverage.
This commit is contained in:
@@ -107,7 +107,7 @@ class LinkController extends Controller
|
||||
|
||||
return redirect(route('transactions.show', [$journal->id]));
|
||||
}
|
||||
$other = $this->journalRepository->find($linkInfo['transaction_journal_id']);
|
||||
$other = $this->journalRepository->findNull($linkInfo['transaction_journal_id']);
|
||||
$alreadyLinked = $this->repository->findLink($journal, $other);
|
||||
|
||||
if ($other->id === $journal->id) {
|
||||
|
||||
@@ -104,7 +104,9 @@ class Authenticate
|
||||
}
|
||||
}
|
||||
} catch (QueryException $e) {
|
||||
// @codeCoverageIgnoreStart
|
||||
throw new FireflyException('It seems the database has not yet been initialized. Did you run the correct upgrade or installation commands?');
|
||||
// @codeCoverageIgnoreEnd
|
||||
}
|
||||
|
||||
return $this->auth->authenticate();
|
||||
|
||||
Reference in New Issue
Block a user