@@ -35,11 +35,7 @@ protected function setUp(): void
3535
3636 public function testBroadcastBasic (): void
3737 {
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 ' );
4339
4440 $ crawler = $ client ->submitForm ('Submit ' , ['title ' => self ::BOOK_TITLE ]);
4541 // $client->waitForElementToContain('#books div', self::BOOK_TITLE);
@@ -58,11 +54,7 @@ public function testBroadcastBasic(): void
5854
5955 public function testExpressionLanguageBroadcast (): void
6056 {
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 ' );
6658
6759 $ client ->submitForm ('Submit ' , ['name ' => self ::ARTIST_NAME_1 ]);
6860 $ client ->waitForElementToContain ('#artists div:nth-child(1) ' , self ::ARTIST_NAME_1 , 5 );
@@ -80,15 +72,8 @@ public function testExpressionLanguageBroadcast(): void
8072 $ artist1Id = $ matches [1 ][0 ];
8173 $ artist2Id = $ matches [1 ][1 ];
8274
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 );
9277
9378 $ client ->request ('GET ' , '/songs ' );
9479
@@ -107,12 +92,8 @@ public function testExpressionLanguageBroadcast(): void
10792
10893 public function testBroadcastWithProxy (): void
10994 {
110- $ client = self ::createPantherClient ();
111- $ client ->wait (5 );
112-
11395 // 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 ' );
11697
11798 // submit first time to create the artist
11899 $ client ->submitForm ('Submit ' );
0 commit comments