Closed Yarre closed 2 years ago
Hi @yarre, can you please attach a reproducer for this issue? Maybe https://github.com/codeception/symfony-module-tests can help you achieve that.
Hi @TavoNiievez, sorry. I am talking about seeEventTriggered()
- can orphan events be asserted with this function?
@Yarre did you tried $I->seeOrphanEvent()
? That you can't use seeEventTriggered
to assert about orphaned events is expected behavior.
The protected function you relate is used by both assertions, but that does not mean that both are interchangeable or fulfill the same function.
If you wish you can modify the documentation blocks to clarify this.
Thank you, it can be closed.
As mentioned in the code Orphan Events can also be asserted but they don't exist in the provided Actual events array.
Reproduced with the following versions: