From 5ecc0f7cbe1d5aabaaa44da732b72a47d0937ee3 Mon Sep 17 00:00:00 2001 From: Christian Kuhn <lolli@schwarzbu.ch> Date: Sat, 9 Dec 2023 11:30:49 +0100 Subject: [PATCH] [TASK] Unit tests stumble on missing import Something changed with recent phpspec/prophecy release 1.18.0 which now stumbles upon a missing namespace import in a unit test. Import correctly. Resolves: #102636 Relaeses: 11.5 Change-Id: If9015bbaf89bbd77bb59c084260c4bb834447ea8 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/82155 Tested-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: core-ci <typo3@b13.com> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> --- Build/phpstan/phpstan-baseline.neon | 5 ----- .../Tests/Unit/Domain/Finishers/AbstractFinisherTest.php | 1 + 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Build/phpstan/phpstan-baseline.neon b/Build/phpstan/phpstan-baseline.neon index 43768fb78199..ff28a8e7c52f 100644 --- a/Build/phpstan/phpstan-baseline.neon +++ b/Build/phpstan/phpstan-baseline.neon @@ -3905,11 +3905,6 @@ parameters: count: 1 path: ../../typo3/sysext/form/Tests/Functional/Framework/FormHandling/FormDataFactory.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: "#^Method TYPO3\\\\CMS\\\\Form\\\\Mvc\\\\Configuration\\\\InheritancesResolverService\\:\\:getResolvedConfiguration\\(\\) invoked with 1 parameter, 0 required\\.$#" count: 9 diff --git a/typo3/sysext/form/Tests/Unit/Domain/Finishers/AbstractFinisherTest.php b/typo3/sysext/form/Tests/Unit/Domain/Finishers/AbstractFinisherTest.php index b860474ae396..946c6d75cc1d 100644 --- a/typo3/sysext/form/Tests/Unit/Domain/Finishers/AbstractFinisherTest.php +++ b/typo3/sysext/form/Tests/Unit/Domain/Finishers/AbstractFinisherTest.php @@ -24,6 +24,7 @@ use TYPO3\CMS\Form\Domain\Finishers\Exception\FinisherException; use TYPO3\CMS\Form\Domain\Finishers\FinisherContext; use TYPO3\CMS\Form\Domain\Finishers\FinisherVariableProvider; use TYPO3\CMS\Form\Domain\Model\FormDefinition; +use TYPO3\CMS\Form\Domain\Model\FormElements\FormElementInterface; use TYPO3\CMS\Form\Domain\Model\FormElements\StringableFormElementInterface; use TYPO3\CMS\Form\Domain\Runtime\FormRuntime; use TYPO3\TestingFramework\Core\Unit\UnitTestCase; -- GitLab