Comments (5)
it'll be less of a hassle for the laravel package, but it'd be much more of a hassle for the main implementation.
Didn't think too much about that problem, I was focused on making it as easy as possible for the users of the Laravel package.
Even just using all of the traits from the laravel one would be trivial to setup right?
That's true
Thanks for your input here!
from eventsauce.
@freekmurze in the laracon workshop I just used the CreatesApplication trait from Laravel, perhaps we can ship with an additional baseclass which extends the eventsauce one and adds CreatesApplication?
from eventsauce.
@frankdejonge That works too indeed. But by only putting on CreatesApplication
you'd still miss the other methods provided by the InteractsWithContainer
, InteractsWithConsole
, InteractsWithDatabase
, MocksApplicationServices
traits and so on.
If the current AggregateRootTestCase
would be refactored so all methods are in a trait you could choose the style you want. Want to extend AggregateRootTestCase
? Fine! Want to use the base test of your project (that you might have customized a bit), just add the TestsAggregateRoot
trait to it.
from eventsauce.
Doesn't laravel provide a single trait to combine those all? Extracting the behaviour from our base class is not trivial because of all the methods used from its base class provided by PHPUnit, which then all need to be added as abstract ones, through which it'd be very hard to detect when things are changing. I agree it'll be less of a hassle for the laravel package, but it'd be much more of a hassle for the main implementation.
from eventsauce.
Even just using all of the traits from the laravel one would be trivial to setup right?
from eventsauce.
Related Issues (20)
- The...
- Default JSON-based serializer? HOT 1
- Doctrine MessageRepository appears to have no upgrade path HOT 13
- Message::withHeader() no longer allows array value HOT 2
- Doubt about aggregate root version HOT 4
- Isn't replaying domain message events by default slow as hell HOT 15
- Examples of persisting snapshots to a database HOT 2
- Aggregate root HOT 3
- Projections
- Structure table
- Suggest snapshotting change HOT 2
- AggregateRootBehaviour should have a template on AggregateRootId HOT 3
- Use lambdas insterad of command objects? HOT 4
- DefaultHeadersDecorator order parameters deprecated HOT 6
- Move all tests to separate folder tests HOT 2
- Reconstituting a specific version HOT 8
- Missing "id" reference in docs HOT 1
- DoctrineOutboxRepository reserved words escaping HOT 1
- Type mismatched... Expected `AggregateRootId` found `AggregateRootIdType` HOT 1
- Storing messages in MongoDB HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eventsauce.