fix: run the functional tests over https

This commit is contained in:
fromme committed 2026-09-18 09:40:06 +02:00
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'),
);
}
@@ -27,7 +27,7 @@ class ResourceAdminControllerTest 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();
+1 -1
View File
@@ -29,7 +29,7 @@ class BookingControllerTest 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();
+1 -1
View File
@@ -20,7 +20,7 @@ class DashboardControllerTest 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();
+1 -1
View File
@@ -27,7 +27,7 @@ class FloorPlanTest 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();