1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/16346] Fix method arguments

PHPBB3-16346
This commit is contained in:
rubencm
2020-08-14 18:42:50 +00:00
parent 758c28ca69
commit 490ddbc2cd
46 changed files with 78 additions and 144 deletions

View File

@@ -165,9 +165,7 @@ class phpbb_path_helper_test extends phpbb_test_case
*/
public function test_update_web_root_path($input, $getPathInfo, $getRequestUri, $getScriptName, $correction)
{
$symfony_request = $this->createMock('\phpbb\symfony_request', array(), array(
new phpbb_mock_request(),
));
$symfony_request = $this->createMock('\phpbb\symfony_request');
$symfony_request->expects($this->any())
->method('getPathInfo')
->will($this->returnValue($getPathInfo));
@@ -185,7 +183,7 @@ class phpbb_path_helper_test extends phpbb_test_case
'php'
);
$this->assertEquals($correction . $input, $path_helper->update_web_root_path($input, $symfony_request));
$this->assertEquals($correction . $input, $path_helper->update_web_root_path($input));
}
public function clean_url_data()