Commit 471d9178 authored by Christian Kuhn's avatar Christian Kuhn Committed by Stefan Bürk
Browse files

[TASK] Avoid an invalid test prophecy

The class prophecy has not been imported and does
not seem to be needed for the test.

Resolves: #98379
Releases: main
Change-Id: I7f75854f3d8546076cc1d264c7b53431231623a8
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/75792


Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Oliver Klee's avatarOliver Klee <typo3-coding@oliverklee.de>
Tested-by: Stefan Bürk's avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: Oliver Klee's avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Stefan Bürk's avatarStefan Bürk <stefan@buerk.tech>
parent 8660a5bb
......@@ -2735,11 +2735,6 @@ parameters:
count: 1
path: ../../typo3/sysext/form/Classes/ViewHelpers/RenderViewHelper.php
-
message: "#^Class TYPO3\\\\CMS\\\\Form\\\\Tests\\\\Unit\\\\Domain\\\\Finishers\\\\FormElementInterface not found\\.$#"
count: 1
path: ../../typo3/sysext/form/Tests/Unit/Domain/Finishers/AbstractFinisherTest.php
-
message: "#^Parameter \\#1 \\$fileReference of method TYPO3\\\\CMS\\\\Core\\\\Localization\\\\LanguageStore\\:\\:flushData\\(\\) expects string, array\\<int, string\\> given\\.$#"
count: 37
......
......@@ -28,12 +28,10 @@ use TYPO3\CMS\Form\Domain\Model\FormElements\StringableFormElementInterface;
use TYPO3\CMS\Form\Domain\Runtime\FormRuntime;
use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
/**
* Test case
*/
class AbstractFinisherTest extends UnitTestCase
{
use \Prophecy\PhpUnit\ProphecyTrait;
/**
* @test
*/
......@@ -533,7 +531,6 @@ class AbstractFinisherTest extends UnitTestCase
]);
$formDefinitionProphecy = $this->prophesize(FormDefinition::class);
$formDefinitionProphecy->getElementByIdentifier('date-1')->willReturn($this->prophesize(FormElementInterface::class)->reveal());
$formRuntimeProphecy->getFormDefinition()->willReturn($formDefinitionProphecy->reveal());
$mockAbstractFinisher = $this->getAccessibleMockForAbstractClass(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment