Skip to content

Commit

Permalink
Changes after review
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverklee committed Jan 4, 2025
1 parent 4319ebf commit 425722b
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions Tests/Functional/Controller/TeaControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace TTN\Tea\Tests\Functional\Controller;

use TYPO3\CMS\Core\Utility\ArrayUtility;
use TYPO3\TestingFramework\Core\Functional\Framework\Frontend\InternalRequest;
use TYPO3\TestingFramework\Core\Functional\FunctionalTestCase;

Expand All @@ -21,16 +20,16 @@ final class TeaControllerTest extends FunctionalTestCase
'typo3conf/ext/tea/Tests/Functional/Controller/Fixtures/Sites/' => 'typo3conf/sites',
];

protected function setUp(): void
{
ArrayUtility::mergeRecursiveWithOverrule($this->configurationToUseInTestInstance, [
'FE' => [
'cacheHash' => [
'enforceValidation' => false,
],
protected array $configurationToUseInTestInstance = [
'FE' => [
'cacheHash' => [
'enforceValidation' => false,
],
]);
],
];

protected function setUp(): void
{
parent::setUp();

$this->importCSVDataSet(__DIR__ . '/Fixtures/Database/SiteStructure.csv');
Expand Down Expand Up @@ -68,7 +67,7 @@ public function indexActionRendersAllAvailableTeas(): void
*/
public function showActionRendersTheGivenTeas(): void
{
$request = (new InternalRequest())->withPageId(1)->withQueryParameters(['tx_tea_teashow[tea]' => 1]);
$request = (new InternalRequest())->withPageId(3)->withQueryParameters(['tx_tea_teashow[tea]' => 1]);

$html = (string)$this->executeFrontendSubRequest($request)->getBody();

Expand Down

0 comments on commit 425722b

Please sign in to comment.