Fix failing test run
A double exception code occurrence was detected, but it originates from a little overcomplicated test setup. Simplifying the test solves the problem.
[BUGFIX] Simplify test setup to avoid double exception codes
The setup just needs to make sure the exception is expected.
More details are not required.
Tested-by: TYPO3com <firstname.lastname@example.org>
Reviewed-by: Christian Kuhn <email@example.com>
Tested-by: Christian Kuhn <firstname.lastname@example.org>
Reviewed-by: Joerg Kummer <email@example.com>
Reviewed-by: Oliver Klee <firstname.lastname@example.org>
Tested-by: Joerg Kummer <email@example.com>
Reviewed-by: Anja Leichsenring <firstname.lastname@example.org>
Tested-by: Anja Leichsenring <email@example.com>