Skip to content

Better explain orphan events #116

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

Merged
merged 2 commits into from
Feb 10, 2021
Merged

Better explain orphan events #116

merged 2 commits into from
Feb 10, 2021

Conversation

TavoNiievez
Copy link
Member

With this PR I improve the documentation of the assertions for the orphan events added in #111, with this (hopefully) I simplify the explanation while using the appropriate names.

Unlike 'normal' events the assertion for orphan events does not semantically benefit from including the suffix 'Triggered', for that reason:
I rename seeOrphanEventTriggered to seeOrphanEvent and dontSeeOrphanEventTriggered to dontSeeOrphanEvent.
Since the old names were never released in a tagged version it is not considered a BC.

Finally, I find it useful that the dontSeeOrphanEvent assertion can be called without any argument, therefore I make the $expected parameter optional there.

@TavoNiievez TavoNiievez added this to the 2.0.0 milestone Feb 10, 2021
@TavoNiievez TavoNiievez merged commit 42dda3c into Codeception:master Feb 10, 2021
@TavoNiievez TavoNiievez deleted the better_explain_orphan_events branch February 10, 2021 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant