โ˜… Implementing event sourcing: testing aggregates

1 ยท Freek Van der Herten ยท July 19, 2019, 1:18 p.m.
Earlier this year we released v2 of laravel-event-sourcing. This package is probably the easiest way to getting started with event sourcing in Laravel. A significant feature of v2 was the addition of aggregates. Today we released another new version of the package that adds test methods. These methods allow you to verify if the aggregate behaves correctly. In this post, I'll show you an example and explain how the test methods are implemented. Testing an aggregate # An aggregate is a class that...