From 34eb9737c58ae5f0a86f079a78969add064d6161 Mon Sep 17 00:00:00 2001
From: Anja Leichsenring <anja.leichsenring@typo3.com>
Date: Sat, 21 Jul 2018 12:16:42 +0200
Subject: [PATCH] [TASK] Remove unnecessary extbase test
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

The removed test was skipped for a long time, and its intended
guarding against the usage of objects in extbase requests does
not apply.

Resolves: #85610
Releases: master
Change-Id: Icf401ff50badba4d8d33405d86708ec7af157516
Reviewed-on: https://review.typo3.org/57649
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Jörg Bösche <typo3@joergboesche.de>
Tested-by: Jörg Bösche <typo3@joergboesche.de>
Reviewed-by: Mathias Brodala <mbrodala@pagemachine.de>
Tested-by: Mathias Brodala <mbrodala@pagemachine.de>
---
 typo3/sysext/extbase/Tests/Unit/Mvc/RequestTest.php | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/typo3/sysext/extbase/Tests/Unit/Mvc/RequestTest.php b/typo3/sysext/extbase/Tests/Unit/Mvc/RequestTest.php
index 7d3352f323a9..9f41cfe2abda 100644
--- a/typo3/sysext/extbase/Tests/Unit/Mvc/RequestTest.php
+++ b/typo3/sysext/extbase/Tests/Unit/Mvc/RequestTest.php
@@ -14,7 +14,6 @@ namespace TYPO3\CMS\Extbase\Tests\Unit\Mvc;
  * The TYPO3 project - inspiring people to share!
  */
 use TYPO3\CMS\Extbase\Mvc\Exception\InvalidArgumentNameException;
-use TYPO3\CMS\Extbase\Mvc\Exception\InvalidArgumentTypeException;
 
 /**
  * Test case
@@ -53,18 +52,6 @@ class RequestTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
         $request->setArgument('', 'theValue');
     }
 
-    /**
-     * @test
-     */
-    public function setArgumentThrowsExceptionIfTheGivenArgumentValueIsAnObject()
-    {
-        $this->expectException(InvalidArgumentTypeException::class);
-        $this->expectExceptionCode(1210858767);
-        $this->markTestSkipped('Differing behavior from TYPO3.Flow because of backwards compatibility reasons.');
-        $request = new \TYPO3\CMS\Extbase\Mvc\Request();
-        $request->setArgument('theKey', new \stdClass());
-    }
-
     /**
      * @test
      */
-- 
GitLab