Skip to content

Commit 66bf8d4

Browse files
committed
Fixing deprecation and making test failure more obvious
1 parent c4d3419 commit 66bf8d4

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/Turbo/Tests/BroadcastTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ class BroadcastTest extends PantherTestCase
2222

2323
public function testBroadcast(): void
2424
{
25+
if (!file_exists(__DIR__.'/app/public/build')) {
26+
throw new \Exception(sprintf('Move into %s and execute Encore before running this test.', realpath(__DIR__.'/app')));
27+
}
28+
2529
($client = self::createPantherClient())->request('GET', '/books');
2630

2731
$crawler = $client->submitForm('Submit', ['title' => self::BOOK_TITLE]);

src/Turbo/Tests/app/Kernel.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
use App\Entity\Book;
1515
use Doctrine\Bundle\DoctrineBundle\DoctrineBundle;
16-
use Doctrine\Bundle\DoctrineBundle\Mapping\MappingDriver;
1716
use Doctrine\ORM\EntityManagerInterface;
1817
use Symfony\Bundle\DebugBundle\DebugBundle;
1918
use Symfony\Bundle\FrameworkBundle\Controller\TemplateController;
@@ -91,10 +90,6 @@ protected function configureContainer(ContainerConfigurator $container): void
9190
],
9291
];
9392

94-
if (class_exists(MappingDriver::class)) {
95-
$doctrineConfig['dbal']['override_url'] = true;
96-
}
97-
9893
$container
9994
->extension('doctrine', $doctrineConfig);
10095

0 commit comments

Comments
 (0)