mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Basic testing, not full coverage.
This commit is contained in:
@@ -13,12 +13,13 @@ use Illuminate\Events\Dispatcher;
|
||||
class EloquentPiggybankTrigger
|
||||
{
|
||||
/**
|
||||
* @param \Piggybank $piggyBank
|
||||
* @param \Piggybank $piggyBank
|
||||
* @param \TransactionJournal $journal
|
||||
*/
|
||||
public function createRelatedTransfer(
|
||||
\Piggybank $piggyBank, \TransactionJournal $journal, \Transaction $transaction
|
||||
) {
|
||||
)
|
||||
{
|
||||
$repetition = $piggyBank->repetitionForDate($journal->date);
|
||||
if (!is_null($repetition)) {
|
||||
// get the amount transferred TO this
|
||||
@@ -226,15 +227,17 @@ class EloquentPiggybankTrigger
|
||||
}
|
||||
}
|
||||
|
||||
public function updateRelatedTransfer(\Piggybank $piggyBank, \TransactionJournal $journal)
|
||||
public function updateRelatedTransfer(\Piggybank $piggyBank)
|
||||
{
|
||||
die('no impl updateRelatedTransfer');
|
||||
// fire the "update" trigger which should handle things just fine:
|
||||
\Event::fire('piggybanks.update', [$piggyBank]);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//
|
||||
// /**
|
||||
// *
|
||||
|
||||
Reference in New Issue
Block a user