Issue Bug Closed

#24364Test failures in t3lib_tree_NodeTest if tests are in typo3_src/tests/ instead of tests/

Oliver Klee 12/18/10, 17:03 updated 03/29/11, 23:46

Description

serializeFixture
! Failure in test case serializeFixture
File: /home/klee/eclipse/typo3_src/tests/t3lib/tree/t3lib_tree_nodeTest.php
Line: 100:
Description
Failed asserting that <string:a:4:> is identical to <string:>.</string:></string:a:4:>

deserializeFixture
! Error in test case deserializeFixture
in file /home/klee/eclipse/typo3_src/tests/t3lib/tree/t3lib_tree_nodeTest.php
on line 109:
Message:
Deserialized object type is not identical!

This happens because the fixtures directory is incorrect when the tests are located in PATH_site . typo3_src/tests/ instead of in PATH_site . tests/.

The patch also changes the following things:

1. drop a LF after ?>
2. adds a missing pair of parenthesis after a “new“
3. drop the empty setUp function
(issue imported from #M16778)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.