Orphan Events assertion doesn't work using seeEventTriggered()
Yarre opened this issue · comments
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:
symfony/stopwatch v5.3.4
symfony/web-profiler-bundle v5.3.8
symfony/framework-bundle v5.3.8
codeception/module-symfony 2.0.5
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.