From a55ef0f5a2f58bc34fe01acdc25e3d410ae02719 Mon Sep 17 00:00:00 2001
From: Torben Hansen <derhansen@gmail.com>
Date: Sat, 19 Nov 2022 19:35:24 +0100
Subject: [PATCH] [TASK] Remove unused prophecy in EXT:core TcaPreparationTest

Resolves: #98786
Releases: main
Change-Id: I66ffa0cd23323d593a5a0dee5d77e0e1c3da2cd8
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/76712
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Tested-by: core-ci <typo3@b13.com>
Tested-by: Oliver Klee <typo3-coding@oliverklee.de>
Tested-by: Nikita Hovratov <nikita.h@live.de>
Reviewed-by: Nikita Hovratov <nikita.h@live.de>
---
 .../Tests/Unit/Preparations/TcaPreparationTest.php  | 13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)

diff --git a/typo3/sysext/core/Tests/Unit/Preparations/TcaPreparationTest.php b/typo3/sysext/core/Tests/Unit/Preparations/TcaPreparationTest.php
index 0ee67817db3a..6b284916483b 100644
--- a/typo3/sysext/core/Tests/Unit/Preparations/TcaPreparationTest.php
+++ b/typo3/sysext/core/Tests/Unit/Preparations/TcaPreparationTest.php
@@ -17,20 +17,14 @@ declare(strict_types=1);
 
 namespace TYPO3\CMS\Core\Tests\Unit\Preparations;
 
-use Prophecy\PhpUnit\ProphecyTrait;
 use TYPO3\CMS\Core\Preparations\TcaPreparation;
 use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
 
 class TcaPreparationTest extends UnitTestCase
 {
-    use ProphecyTrait;
-
     /**
      * @test
      * @dataProvider configureCategoryRelationsDataProvider
-     *
-     * @param array $input
-     * @param array $expected
      */
     public function configureCategoryRelations(array $input, array $expected): void
     {
@@ -249,13 +243,10 @@ class TcaPreparationTest extends UnitTestCase
     /**
      * @test
      * @dataProvider configureCategoryRelationsThrowsExceptionOnInvalidMaxitemsDataProvider
-     *
-     * @param array $input
-     * @param int $excpetionCode
      */
-    public function configureCategoryRelationsThrowsExceptionOnInvalidMaxitems(array $input, int $excpetionCode): void
+    public function configureCategoryRelationsThrowsExceptionOnInvalidMaxitems(array $input, int $exceptionCode): void
     {
-        $this->expectExceptionCode($excpetionCode);
+        $this->expectExceptionCode($exceptionCode);
         $this->expectException(\RuntimeException::class);
         (new TcaPreparation())->prepare($input);
     }
-- 
GitLab