aboutsummaryrefslogtreecommitdiffstats
path: root/tests/tree
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2013-04-30 13:54:50 +0200
committerJoas Schilling <nickvergessen@gmx.de>2013-04-30 13:58:03 +0200
commit67f2edae170576104e619ffb38672cabf44e20fa (patch)
tree5306bf9e398a2613efe633c37a35b6d8bc6a0687 /tests/tree
parent4810c61fd7b912ea2914b99f7db502b6f503068f (diff)
downloadforums-67f2edae170576104e619ffb38672cabf44e20fa.tar
forums-67f2edae170576104e619ffb38672cabf44e20fa.tar.gz
forums-67f2edae170576104e619ffb38672cabf44e20fa.tar.bz2
forums-67f2edae170576104e619ffb38672cabf44e20fa.tar.xz
forums-67f2edae170576104e619ffb38672cabf44e20fa.zip
[ticket/11495] Use descendants and ancestors instead of parents/children
PHPBB3-11495
Diffstat (limited to 'tests/tree')
-rw-r--r--tests/tree/nestedset_forum_get_data_test.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/tree/nestedset_forum_get_data_test.php b/tests/tree/nestedset_forum_get_data_test.php
index 7a4fada880..49586fbade 100644
--- a/tests/tree/nestedset_forum_get_data_test.php
+++ b/tests/tree/nestedset_forum_get_data_test.php
@@ -34,9 +34,9 @@ class phpbb_tests_tree_nestedset_forum_get_data_test extends phpbb_tests_tree_ne
/**
* @dataProvider get_path_and_subtree_data_data
*/
- public function test_get_path_and_subtree_data($forum_id, $order_desc, $include_item, $expected)
+ public function test_get_path_and_subtree_data($forum_id, $order_asc, $include_item, $expected)
{
- $this->assertEquals($expected, array_keys($this->set->get_path_and_subtree_data($forum_id, $order_desc, $include_item)));
+ $this->assertEquals($expected, array_keys($this->set->get_path_and_subtree_data($forum_id, $order_asc, $include_item)));
}
public function get_path_data_data()
@@ -62,9 +62,9 @@ class phpbb_tests_tree_nestedset_forum_get_data_test extends phpbb_tests_tree_ne
/**
* @dataProvider get_path_data_data
*/
- public function test_get_path_data($forum_id, $order_desc, $include_item, $expected)
+ public function test_get_path_data($forum_id, $order_asc, $include_item, $expected)
{
- $this->assertEquals($expected, array_keys($this->set->get_path_data($forum_id, $order_desc, $include_item)));
+ $this->assertEquals($expected, array_keys($this->set->get_path_data($forum_id, $order_asc, $include_item)));
}
public function get_subtree_data_data()
@@ -90,9 +90,9 @@ class phpbb_tests_tree_nestedset_forum_get_data_test extends phpbb_tests_tree_ne
/**
* @dataProvider get_subtree_data_data
*/
- public function test_get_subtree_data($forum_id, $order_desc, $include_item, $expected)
+ public function test_get_subtree_data($forum_id, $order_asc, $include_item, $expected)
{
- $this->assertEquals($expected, array_keys($this->set->get_subtree_data($forum_id, $order_desc, $include_item)));
+ $this->assertEquals($expected, array_keys($this->set->get_subtree_data($forum_id, $order_asc, $include_item)));
}
public function get_path_basic_data_data()