diff --git a/tests/Application/.env b/tests/Application/.env index 6e0a2f2f..29dc5f19 100644 --- a/tests/Application/.env +++ b/tests/Application/.env @@ -12,7 +12,8 @@ APP_SECRET=EDITME # Format described at http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url # For a sqlite database, use: "sqlite:///%kernel.project_dir%/var/data.db" # Set "serverVersion" to your server version to avoid edge-case exceptions and extra database calls -DATABASE_URL=sqlite:///%kernel.project_dir%/var/db_%kernel.environment%.db +DATABASE_URL="mysql://root:root@127.0.0.1/sylius" + ###< doctrine/doctrine-bundle ### ###> lexik/jwt-authentication-bundle ### diff --git a/tests/Application/public/media/image/.gitignore b/tests/Application/public/media/image/.gitignore deleted file mode 100644 index e69de29b..00000000 diff --git a/tests/Controller/XmlApiTestCase.php b/tests/Controller/XmlApiTestCase.php index 0925b71a..6282a28c 100644 --- a/tests/Controller/XmlApiTestCase.php +++ b/tests/Controller/XmlApiTestCase.php @@ -36,7 +36,11 @@ protected function getResponse(string $uri): Response { $this->client->request('GET', $uri); - return $this->client->getResponse(); + return new Response( + $this->client->getInternalResponse()->getContent(), + $this->client->getInternalResponse()->getStatusCode(), + $this->client->getInternalResponse()->getHeaders(), + ); } protected function deleteSitemaps(): void