[TASK] Remove tests no longer needed 72/29772/2
authorAnja Leichsenring <aleichsenring@ab-softlab.de>
Fri, 2 May 2014 11:38:42 +0000 (13:38 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 2 May 2014 12:19:34 +0000 (14:19 +0200)
Category API was changed to silently fail instead of throwing an
exception, but the corresponding tests were not removed.

Releases: 6.2
Resolves: #58416
Relates: #58384
Change-Id: I52c0fac32c7f4385868ef5f28c6f94b583948e75
Reviewed-on: https://review.typo3.org/29772
Reviewed-by: Frans Saris
Tested-by: Frans Saris
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/core/Classes/Category/CategoryRegistry.php
typo3/sysext/core/Tests/Unit/Category/CategoryRegistryTest.php

index 98ffd22..dde7101 100644 (file)
@@ -236,7 +236,6 @@ class CategoryRegistry implements \TYPO3\CMS\Core\SingletonInterface {
         *
         * @return void
         * @internal
-        * @throws \RuntimeException
         */
        public function applyTcaForPreRegisteredTables() {
                $this->registerDefaultCategorizedTables();
index 2b28a18..c5722e2 100644 (file)
@@ -117,26 +117,6 @@ class CategoryRegistryTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
 
        /**
         * @test
-        * @expectedException \RuntimeException
-        * @expectedExceptionCode 1397838817
-        */
-       public function throwsExceptionIfAddIsCalledForNotExistentTableAfterTcaHasBeenApplied() {
-               $this->subject->applyTcaForPreRegisteredTables();
-               $this->subject->add('test_extension_a', uniqid('foo'));
-       }
-
-       /**
-        * @expectedException \RuntimeException
-        * @expectedExceptionCode 1397841334
-        * @test
-        */
-       public function throwsExceptionIfRegistryIsAppliedTwice() {
-               $this->subject->applyTcaForPreRegisteredTables();
-               $this->subject->applyTcaForPreRegisteredTables();
-       }
-
-       /**
-        * @test
         */
        public function areMultipleElementsOfSameExtensionRegistered() {
                $this->subject->add('test_extension_a', $this->tables['first'], 'categories');