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