mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-12-22 12:46:11 +01:00

[TASK] Clean up TeaControllerTest a bit (#1527)

This commit is contained in:
Oliver Klee 2024-12-10 20:47:54 +01:00 committed by GitHub
parent 81422d4ed5
commit b374aee4fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View file

@ -1,3 +1,3 @@
"tt_content" "tt_content"
,"uid","pid","CType","header","list_type" ,"uid","pid","CType","header","list_type"
,1,1,"list","Teas Index","tea_teaindex" ,1,1,"list","Tea index","tea_teaindex"

Can't render this file because it has a wrong number of fields in line 2.

View file

@ -47,8 +47,7 @@ final class TeaControllerTest extends FunctionalTestCase
$this->importCSVDataSet(__DIR__ . '/Fixtures/Database/ContentElementTeaIndex.csv'); $this->importCSVDataSet(__DIR__ . '/Fixtures/Database/ContentElementTeaIndex.csv');
$this->importCSVDataSet(__DIR__ . '/Fixtures/Database/Teas.csv'); $this->importCSVDataSet(__DIR__ . '/Fixtures/Database/Teas.csv');
$request = new InternalRequest(); $request = (new InternalRequest())->withPageId(1);
$request = $request->withPageId(1);
$html = (string)$this->executeFrontendSubRequest($request)->getBody(); $html = (string)$this->executeFrontendSubRequest($request)->getBody();