-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add unit test for the EventStorageService #18
Conversation
Remove shipping as uncomplete tests, should be added in complete separated tests/PR.
Remove coupon as uncomplete tests, should be added in complete separated tests/PR.
…le_tag_manager into init-kernel-tests
* Asserts the events queue follows the FIFO (First in First out) pattern. | ||
*/ | ||
public function testAddEventFifoQueue() { | ||
$this->testAddEvent(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$this->testAddEvent(); |
useless
* Asserts strictly same event aren't added twice in the events queue. | ||
*/ | ||
public function testAddEventSameSkipped() { | ||
$this->testAddEvent(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$this->testAddEvent(); |
useless
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this looks good! Please merge, I hope you have enough permissions - otherwise let me know :)
Here some basic tests.
They serve as Example for futur tests or as "code" example for developers which discover the module.
As I always say, people should read the tests to understand the module - thoses tests should help them - especially Units ones.
We still have to works on heavy tests (and more valuable for the module stability himself) as:
But let's merge first this in dev & then works separately on each other cases