Skip to content
This repository has been archived by the owner on Sep 20, 2019. It is now read-only.

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Rias committed Sep 5, 2019
1 parent f29e609 commit 68424c0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/TestClasses/Projectors/ProjectorThatWritesMetaData.php
Expand Up @@ -18,11 +18,10 @@ final class ProjectorThatWritesMetaData implements Projector

protected $trackStream = '*';

public function onMoneyAdded(StoredEvent $storedEvent, MoneyAddedEvent $event)
public function onMoneyAdded(StoredEvent $storedEvent, StoredEventRepository $repository, MoneyAddedEvent $event)
{
$storedEvent->meta_data['user_id'] = 1;

$repository = app(StoredEventRepository::class);
$repository->update($storedEvent);
}
}

0 comments on commit 68424c0

Please sign in to comment.