[TYPO3-core] RFC #16778: Bug: Test failures in t3lib_tree_NodeTest if tests are in typo3_src/tests/ instead of tests/
Oliver Klee
typo3-german-02 at oliverklee.de
Sat Dec 18 17:05:58 CET 2010
This is an SVN patch request.
Type: Bugfix
Bugtracker references:
http://bugs.typo3.org/view.php?id=16778
Branches:
trunk
Problem:
t3lib_tree_NodeTest
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:...Action";}}}}}> is identical to
<string:>.
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/.
Solution:
Allow both fixtures paths.
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: node.diff
Type: text/x-diff
Size: 2230 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101218/722d78dd/attachment.diff>
More information about the TYPO3-team-core
mailing list