aboutsummaryrefslogtreecommitdiffstats
path: root/tests/tree
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2013-04-30 10:37:59 +0200
committerJoas Schilling <nickvergessen@gmx.de>2013-04-30 10:37:59 +0200
commit4810c61fd7b912ea2914b99f7db502b6f503068f (patch)
tree4075eecee54c7b637b9977ad3c6aad876381b878 /tests/tree
parent8a4260703fa76bb92f144b527b3d55289568db74 (diff)
downloadforums-4810c61fd7b912ea2914b99f7db502b6f503068f.tar
forums-4810c61fd7b912ea2914b99f7db502b6f503068f.tar.gz
forums-4810c61fd7b912ea2914b99f7db502b6f503068f.tar.bz2
forums-4810c61fd7b912ea2914b99f7db502b6f503068f.tar.xz
forums-4810c61fd7b912ea2914b99f7db502b6f503068f.zip
[ticket/11495] Remove get_parent_data from interface and rename it
The method is implementation specific and has no use, apart from cache, that is not covered by get_path_data(). PHPBB3-11495
Diffstat (limited to 'tests/tree')
-rw-r--r--tests/tree/nestedset_forum_get_data_test.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/tree/nestedset_forum_get_data_test.php b/tests/tree/nestedset_forum_get_data_test.php
index 300bbc6bfa..7a4fada880 100644
--- a/tests/tree/nestedset_forum_get_data_test.php
+++ b/tests/tree/nestedset_forum_get_data_test.php
@@ -95,7 +95,7 @@ class phpbb_tests_tree_nestedset_forum_get_data_test extends phpbb_tests_tree_ne
$this->assertEquals($expected, array_keys($this->set->get_subtree_data($forum_id, $order_desc, $include_item)));
}
- public function get_parent_data_data()
+ public function get_path_basic_data_data()
{
return array(
array(1, array(), array()),
@@ -108,10 +108,10 @@ class phpbb_tests_tree_nestedset_forum_get_data_test extends phpbb_tests_tree_ne
}
/**
- * @dataProvider get_parent_data_data
+ * @dataProvider get_path_basic_data_data
*/
- public function test_get_parent_data($forum_id, $forum_data, $expected)
+ public function test_get_path_basic_data($forum_id, $forum_data, $expected)
{
- $this->assertEquals($expected, array_keys($this->set->get_parent_data(array_merge($this->forum_data[$forum_id], $forum_data))));
+ $this->assertEquals($expected, array_keys($this->set->get_path_basic_data(array_merge($this->forum_data[$forum_id], $forum_data))));
}
}