@@ -35,7 +35,10 @@ protected function setUp(): void
35
35
36
36
public function testBroadcastBasic (): void
37
37
{
38
- ($ client = self ::createPantherClient ())->request ('GET ' , '/books ' );
38
+ $ client = self ::createPantherClient ();
39
+ $ client ->wait ();
40
+
41
+ $ client ->request ('GET ' , '/books ' );
39
42
$ client ->wait ();
40
43
41
44
$ crawler = $ client ->submitForm ('Submit ' , ['title ' => self ::BOOK_TITLE ]);
@@ -55,7 +58,10 @@ public function testBroadcastBasic(): void
55
58
56
59
public function testExpressionLanguageBroadcast (): void
57
60
{
58
- ($ client = self ::createPantherClient ())->request ('GET ' , '/artists ' );
61
+ $ client = self ::createPantherClient ();
62
+ $ client ->wait ();
63
+
64
+ $ client ->request ('GET ' , '/artists ' );
59
65
$ client ->wait ();
60
66
61
67
$ client ->submitForm ('Submit ' , ['name ' => self ::ARTIST_NAME_1 ]);
@@ -74,10 +80,14 @@ public function testExpressionLanguageBroadcast(): void
74
80
$ artist1Id = $ matches [1 ][0 ];
75
81
$ artist2Id = $ matches [1 ][1 ];
76
82
77
- ($ clientArtist1 = self ::createAdditionalPantherClient ())->request ('GET ' , '/artists/ ' .$ artist1Id );
83
+ $ clientArtist1 = self ::createAdditionalPantherClient ();
84
+ $ clientArtist1 ->wait ();
85
+ $ clientArtist1 ->request ('GET ' , '/artists/ ' .$ artist1Id );
78
86
$ clientArtist1 ->wait ();
79
87
80
- ($ clientArtist2 = self ::createAdditionalPantherClient ())->request ('GET ' , '/artists/ ' .$ artist2Id );
88
+ $ clientArtist2 = self ::createAdditionalPantherClient ();
89
+ $ clientArtist2 ->wait ();
90
+ $ clientArtist2 ->request ('GET ' , '/artists/ ' .$ artist2Id );
81
91
$ clientArtist2 ->wait ();
82
92
83
93
$ client ->request ('GET ' , '/songs ' );
@@ -97,8 +107,11 @@ public function testExpressionLanguageBroadcast(): void
97
107
98
108
public function testBroadcastWithProxy (): void
99
109
{
110
+ $ client = self ::createPantherClient ();
111
+ $ client ->wait ();
112
+
100
113
// testing that Artist is updated, even though it's saved as Proxy
101
- ( $ client = self :: createPantherClient ()) ->request ('GET ' , '/artistFromSong ' );
114
+ $ client ->request ('GET ' , '/artistFromSong ' );
102
115
$ client ->wait ();
103
116
104
117
// submit first time to create the artist
0 commit comments