mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-11 11:13:59 +02:00
[ticket/17535] Update PHPUnit to v.10
PHPBB-17535
This commit is contained in:
@@ -546,13 +546,13 @@ class phpbb_mention_controller_test extends phpbb_database_test_case
|
||||
{
|
||||
$this->request->expects($this->atLeast(2))
|
||||
->method('variable')
|
||||
->withConsecutive(
|
||||
['keyword', '', true],
|
||||
['topic_id', 0])
|
||||
->willReturnOnConsecutiveCalls(
|
||||
$keyword,
|
||||
$topic_id
|
||||
);
|
||||
->willReturnCallback(function() use ($keyword, $topic_id) {
|
||||
$args = func_get_args();
|
||||
return match($args) {
|
||||
['keyword', '', true, \phpbb\request\request_interface::REQUEST] => $keyword,
|
||||
['topic_id', 0, false, \phpbb\request\request_interface::REQUEST] => $topic_id,
|
||||
};});
|
||||
|
||||
$data = json_decode($this->controller->handle()->getContent(), true);
|
||||
$this->assertEquals($expected_result, $data);
|
||||
}
|
||||
|
Reference in New Issue
Block a user