From b374aee4faf6a8c56a2942f9bb1241c981e62510 Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Tue, 10 Dec 2024 20:47:54 +0100 Subject: [PATCH] [TASK] Clean up `TeaControllerTest` a bit (#1527) --- .../Controller/Fixtures/Database/ContentElementTeaIndex.csv | 2 +- Tests/Functional/Controller/TeaControllerTest.php | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Tests/Functional/Controller/Fixtures/Database/ContentElementTeaIndex.csv b/Tests/Functional/Controller/Fixtures/Database/ContentElementTeaIndex.csv index 682e61b..0fe9c69 100644 --- a/Tests/Functional/Controller/Fixtures/Database/ContentElementTeaIndex.csv +++ b/Tests/Functional/Controller/Fixtures/Database/ContentElementTeaIndex.csv @@ -1,3 +1,3 @@ "tt_content" ,"uid","pid","CType","header","list_type" -,1,1,"list","Teas Index","tea_teaindex" +,1,1,"list","Tea index","tea_teaindex" diff --git a/Tests/Functional/Controller/TeaControllerTest.php b/Tests/Functional/Controller/TeaControllerTest.php index b0a8ec8..e4c1334 100644 --- a/Tests/Functional/Controller/TeaControllerTest.php +++ b/Tests/Functional/Controller/TeaControllerTest.php @@ -47,8 +47,7 @@ final class TeaControllerTest extends FunctionalTestCase $this->importCSVDataSet(__DIR__ . '/Fixtures/Database/ContentElementTeaIndex.csv'); $this->importCSVDataSet(__DIR__ . '/Fixtures/Database/Teas.csv'); - $request = new InternalRequest(); - $request = $request->withPageId(1); + $request = (new InternalRequest())->withPageId(1); $html = (string)$this->executeFrontendSubRequest($request)->getBody();