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

[TASK] Migrate the deprecated executeFrontendRequest in tests (#1116)

This method is deprecated. Starting with TYPO3 11LTS,
`executeFrontendSubRequest` should be used.

Co-authored-by: Daniel Siepmann <coding@daniel-siepmann.de>
This commit is contained in:
Oliver Klee 2024-01-15 13:43:38 +01:00 committed by GitHub
parent beccf7fa6c
commit 4335df7305
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,7 +44,7 @@ final class TeaControllerTest extends FunctionalTestCase
$request = new InternalRequest();
$request = $request->withPageId(1);
$html = $this->executeFrontendRequest($request)->getBody()->__toString();
$html = $this->executeFrontendSubRequest($request)->getBody()->__toString();
self::assertStringContainsString('Godesberger Burgtee', $html);
self::assertStringContainsString('Oolong', $html);