mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2025-01-10 18:02:40 +00:00
Don't initialize Conf in data providers
This commit is contained in:
parent
2e7fa7cd1d
commit
a2468b85fa
1 changed files with 2 additions and 2 deletions
|
@ -100,8 +100,8 @@ class TestREST extends \JKingWeb\Arsse\Test\AbstractTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function provideAuthenticationChallenges() {
|
public function provideAuthenticationChallenges() {
|
||||||
self::setConf();
|
$realm = (new \ReflectionClass(\JKingWeb\Arsse\Conf::class))->getDefaultProperties()['httpRealm'];
|
||||||
$default = 'Basic realm="'.Arsse::$conf->httpRealm.'", charset="UTF-8"';
|
$default = 'Basic realm="'.$realm.'", charset="UTF-8"';
|
||||||
return [
|
return [
|
||||||
[new EmptyResponse(401), new EmptyResponse(401, ['WWW-Authenticate' => $default])],
|
[new EmptyResponse(401), new EmptyResponse(401, ['WWW-Authenticate' => $default])],
|
||||||
[new EmptyResponse(401), new EmptyResponse(401, ['WWW-Authenticate' => 'Basic realm="OOK", charset="UTF-8"']), "OOK"],
|
[new EmptyResponse(401), new EmptyResponse(401, ['WWW-Authenticate' => 'Basic realm="OOK", charset="UTF-8"']), "OOK"],
|
||||||
|
|
Loading…
Reference in a new issue