fix: run the functional tests over https
This commit is contained in:
1 parent
e9acfd4a30
commit
fae28b1fd7
8 files changed
+10
-10
No files matched your search
@@ -26,7 +26,7 @@ class BookingAdminControllerTest extends WebTestCase
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->client = self::createClient();
|
||||
$this->client = self::createClient(server: ['HTTPS' => true]);
|
||||
$this->client->disableReboot();
|
||||
$this->em = self::getContainer()->get(EntityManagerInterface::class);
|
||||
$this->em->getConnection()->beginTransaction();
|
||||
@@ -231,7 +231,7 @@ class BookingAdminControllerTest extends WebTestCase
|
||||
self::assertStringContainsString('Bea Berger', $modal->text());
|
||||
// Posts back to the same URI, which is what carries ?return=admin through the round trip.
|
||||
self::assertSame(
|
||||
\sprintf('http://localhost/bookings/%d/release?return=admin', $booking->getId()),
|
||||
\sprintf('https://localhost/bookings/%d/release?return=admin', $booking->getId()),
|
||||
$modal->filter('[hx-post]')->attr('hx-post'),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user