[TYPO3-core] RFC #16776: Bug: Unit test crashes in t3lib_tree_SortedNodeCollectionTest

Oliver Klee typo3-german-02 at oliverklee.de
Sat Dec 18 16:26:43 CET 2010


This is an SVN patch request.

Type: Bugfix

Bugtracker references:
http://bugs.typo3.org/view.php?id=16776

Branches:
trunk

Problem:
The testcase t3lib_tree_SortedNodeCollectionTest crashes when run on the
latest trunk:

addNodesSorted

Fatal error: Call to undefined method
t3lib_tree_SortedNodeCollection::addNode() in
/home/klee/eclipse/typo3_src/tests/t3lib/tree/t3lib_tree_sortednodecollectionTest.php
on line 43

removeNodeByNodeId

Fatal error: Call to undefined method
t3lib_tree_SortedNodeCollection::removeNode() in
/home/klee/eclipse/typo3_src/tests/t3lib/tree/t3lib_tree_sortednodecollectionTest.php
on line 86

This is because

1. addNode now is named append now

2. removeNode has been removed completely



Solution:
Use append() instead of addNode and drop the test for removeNode.

In addition, the test removes the empty setUp and tearDown methods and
drops a NL after the ?>.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: nodeTest.diff
Type: text/x-diff
Size: 2228 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20101218/f43bc26d/attachment-0001.diff>


More information about the TYPO3-team-core mailing list