1
1
Fork 0
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:
J. King 2019-10-17 13:48:25 -04:00
parent 2e7fa7cd1d
commit a2468b85fa

View file

@ -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"],