Skip to content

Commit 4b28494

Browse files
committed
revert debug changes
1 parent a1abe2a commit 4b28494

File tree

4 files changed

+8
-33
lines changed

4 files changed

+8
-33
lines changed

.github/workflows/functional-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,6 @@ jobs:
8282
working-directory: src/Turbo
8383
run: |
8484
[ 'lowest' = '${{ matrix.dependency-version }}' ] && export SYMFONY_DEPRECATIONS_HELPER=weak
85-
vendor/bin/simple-phpunit -vvv --debug --testdox
85+
vendor/bin/simple-phpunit
8686
env:
8787
SYMFONY_DEPRECATIONS_HELPER: 'max[self]=1'

src/Turbo/tests/BroadcastTest.php

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -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');

src/Turbo/tests/TurboFrameTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@ class TurboFrameTest extends PantherTestCase
2020
{
2121
public function testFrame(): void
2222
{
23-
$client = self::createPantherClient();
24-
$client->wait(5);
25-
26-
$client->request('GET', '/');
23+
($client = self::createPantherClient())->request('GET', '/');
2724

2825
$client->clickLink('This block is scoped, the rest of the page will not change if you click here!');
2926
$this->assertSelectorWillContain('body', 'This will replace the content of the Turbo Frame!');

src/Turbo/tests/TurboStreamTest.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@ final class TurboStreamTest extends PantherTestCase
2020
{
2121
public function testStream(): void
2222
{
23-
$client = self::createPantherClient();
24-
$client->wait(5);
25-
26-
$client->request('GET', '/');
23+
($client = self::createPantherClient())->request('GET', '/');
2724

2825
$client->submitForm('Trigger Turbo Stream!');
2926
$this->assertSelectorWillContain('body', 'This div replaces the existing element with the DOM ID "form".');

0 commit comments

Comments
 (0)