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

+1 -1
View File
@@ -34,4 +34,4 @@ security:
# ROLE_USER: myep authenticates far more people than work here, and someone who holds
# neither of these is refused at login with an explanation rather than let in to an
# empty screen.
- { path: ^/, roles: [ROLE_EMPLOYEE, ROLE_ADMIN], , requires_channel: https }
- { path: ^/, roles: [ROLE_EMPLOYEE, ROLE_ADMIN], requires_channel: https }
@@ -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();
@@ -23,7 +23,7 @@ class HtmxErrorFlashListenerTest 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();
+2 -2
View File
@@ -17,7 +17,7 @@ class LoginEntryPointTest extends WebTestCase
*/
public function testAnExpiredSessionOnAnHtmxRequestNavigatesToTheLoginPage(): void
{
$client = self::createClient();
$client = self::createClient(server: ['HTTPS' => true]);
$client->request('GET', '/book/desk', server: ['HTTP_HX-Request' => 'true']);
@@ -26,7 +26,7 @@ class LoginEntryPointTest extends WebTestCase
public function testAnExpiredSessionOnAnOrdinaryRequestStillRedirects(): void
{
$client = self::createClient();
$client = self::createClient(server: ['HTTPS' => true]);
$client->request('GET', '/book/desk');