Skip to content

Commit

Permalink
[TASK] Extend test coverage in UncacheTemplateViewTest
Browse files Browse the repository at this point in the history
  • Loading branch information
NamelessCoder committed Jan 24, 2023
1 parent f51de0b commit f445d0f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Tests/Unit/View/UncacheTemplateViewTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/

use FluidTYPO3\Vhs\Tests\Unit\AbstractTestCase;
use TYPO3\CMS\Backend\Controller\BackendController;
use TYPO3\CMS\Core\Http\ServerRequest;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\Mvc\ExtbaseRequestParameters;
Expand Down Expand Up @@ -76,7 +77,14 @@ public function callUserFunctionReturnsCallsExpectedMethodSequence()
$configuration = [
'partial' => 'dummy',
'section' => 'dummy',
'controllerContext' => [],
'controllerContext' => [
'actionName' => 'test',
'extensionName' => 'vhs',
'controllerName' => 'test',
'controllerObjectName' => BackendController::class,
'pluginName' => 'foo',
'format' => 'html',
],
'partialRootPaths' => ['foo']
];
$mock->expects($this->once())->method('setRenderingContext');
Expand Down

0 comments on commit f445d0f

Please sign in to comment.