From a623868f20574e19d6840af11bce8836ad436e95 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Tue, 21 Oct 2014 22:38:03 -0500 Subject: [ticket/13192] Pass correct parameters and rename method to get_valid_page PHPBB3-13192 --- tests/path_helper/path_helper_test.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/path_helper/path_helper_test.php b/tests/path_helper/path_helper_test.php index f2c2e0b102..26cb940b54 100644 --- a/tests/path_helper/path_helper_test.php +++ b/tests/path_helper/path_helper_test.php @@ -422,7 +422,7 @@ class phpbb_path_helper_test extends phpbb_test_case $this->assertEquals($this->phpbb_root_path . $expected, $this->path_helper->get_web_root_path_from_ajax_referer($referer_url, $board_url)); } - public function data_get_valid_user_page() + public function data_get_valid_page() { return array( // array( current page , mod_rewrite setting , expected output ) @@ -436,10 +436,10 @@ class phpbb_path_helper_test extends phpbb_test_case } /** - * @dataProvider data_get_valid_user_page + * @dataProvider data_get_valid_page */ - public function test_get_valid_user_page($page, $mod_rewrite, $expected) + public function test_get_valid_page($page, $mod_rewrite, $expected) { - $this->assertEquals($this->phpbb_root_path . $expected, $this->path_helper->get_valid_user_page($page, $mod_rewrite)); + $this->assertEquals($this->phpbb_root_path . $expected, $this->path_helper->get_valid_page($page, $mod_rewrite)); } } -- cgit v1.2.1