[CLEANUP] Let expected exceptions test for code, not text 36/31836/2
authorAnja Leichsenring <aleichsenring@ab-softlab.de>
Fri, 25 Jul 2014 19:33:02 +0000 (21:33 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 25 Jul 2014 19:53:52 +0000 (21:53 +0200)
commit28192cb5b3efbb2bdd070f8e4322b2582d42d637
tree1317c7aa9a70ce27ab1b60dfc7df3541d0c86a90
parent3c7c4838c5d44a255c11a2f9346c2b567104149d
[CLEANUP] Let expected exceptions test for code, not text

When an exception is expected in DependencyUtilityTest, the correct
exception is tested by text. The change of wording of some of those
exceptions caused the related test to fail.

Testing for the exception code instead of the text opens the
possibility to adapt display messages, while the exception code stays
unchanged and stabilizes tests against false positives.

Change-Id: Ib1365c8d7166e522690bb9f8842adc8eb27f635b
Resolves: #60583
Relates: #53572
Releases: 6.3, 6.2
Reviewed-on: http://review.typo3.org/31836
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/extensionmanager/Tests/Unit/Utility/DependencyUtilityTest.php