File tree 1 file changed +17
-1
lines changed
1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,14 @@ public function dontSeeEventTriggered(FunctionalTester $I)
19
19
$ I ->dontSeeEventTriggered ([ErrorListener::class, ErrorListener::class]);
20
20
}
21
21
22
+ public function dontSeeEventListenerIsCalled (FunctionalTester $ I )
23
+ {
24
+ $ I ->amOnPage ('/ ' );
25
+ $ I ->dontSeeEventListenerIsCalled (ErrorListener::class);
26
+ $ I ->dontSeeEventListenerIsCalled (new ErrorListener ());
27
+ $ I ->dontSeeEventListenerIsCalled ([ErrorListener::class, ErrorListener::class]);
28
+ }
29
+
22
30
public function dontSeeOrphanEvent (FunctionalTester $ I )
23
31
{
24
32
$ I ->amOnPage ('/login ' );
@@ -38,9 +46,17 @@ public function seeEventTriggered(FunctionalTester $I)
38
46
$ I ->seeEventTriggered ([SecurityListener::class, RouterDataCollector::class]);
39
47
}
40
48
49
+ public function seeEventListenerIsCalled (FunctionalTester $ I )
50
+ {
51
+ $ I ->amOnPage ('/ ' );
52
+ $ I ->seeEventListenerIsCalled (SecurityListener::class);
53
+ $ I ->seeEventListenerIsCalled (new RouterDataCollector ());
54
+ $ I ->seeEventListenerIsCalled ([SecurityListener::class, RouterDataCollector::class]);
55
+ }
56
+
41
57
public function seeOrphanEvent (FunctionalTester $ I )
42
58
{
43
- $ I ->markTestIncomplete ('To do: use a new event for this assertion ' );
59
+ $ I ->markTestIncomplete ('To do: use a new event for this assertion ' );
44
60
$ I ->amOnPage ('/register ' );
45
61
$ I ->submitSymfonyForm ('registration_form ' , [
46
62
'[email] ' => 'jane_doe@gmail.com ' ,
You can’t perform that action at this time.
0 commit comments