Skip to content

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