[BUGFIX] Follow-up: Fix broken test in CategoryRegistryTest 60/24860/5
authorMarc Bastian Heinrichs <typo3@mbh-software.de>
Thu, 17 Oct 2013 09:12:37 +0000 (11:12 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Thu, 17 Oct 2013 10:01:25 +0000 (12:01 +0200)
commitda867812405417dc13044389bbc7e3f50debc961
tree6f6b21a4f6826095cc3251253137bddae3623702
parent1c5a89c670942afb95771bcde822fe18e45dd2d2
[BUGFIX] Follow-up: Fix broken test in CategoryRegistryTest

Since I156528669704004a86243e03f34d3a1af07cdb21 CategoryRegistryTest
is broken, because argument $options of CategoryRegistry::add
is a required array now. But the method throws an exception
if the argument type doesn't match.

Keep argument typing and remove invalid argument exception
(and corresponding unit test).

Resolves: #52910
Related: #52285
Releases: 6.2
Change-Id: If7d8e51f8fcc0cd9bf579186d768c835837787ef
Reviewed-on: https://review.typo3.org/24860
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
typo3/sysext/core/Classes/Category/CategoryRegistry.php
typo3/sysext/core/Tests/Unit/Category/CategoryRegistryTest.php