mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-13 12:14:06 +02:00
[ticket/17535] Address code review comments
PHPBB-17535
This commit is contained in:
@@ -74,10 +74,10 @@ class phpbb_auth_provider_apache_test extends phpbb_database_test_case
|
||||
->will($this->returnValue(true));
|
||||
$this->request->expects($this->exactly(2))
|
||||
->method('server')
|
||||
->willReturnCallback(fn(string $arg) => match(true) {
|
||||
$arg === 'PHP_AUTH_USER' => 'foobar',
|
||||
$arg === 'PHP_AUTH_PW' => 'example',
|
||||
});
|
||||
->willReturnMap([
|
||||
['PHP_AUTH_USER', 'foobar'],
|
||||
['PHP_AUTH_PW', 'example']
|
||||
]);
|
||||
|
||||
$expected = array(
|
||||
'status' => LOGIN_SUCCESS,
|
||||
|
Reference in New Issue
Block a user