From a2468b85fabbdae4d0ea9c057714f7a487eb7fcd Mon Sep 17 00:00:00 2001 From: "J. King" Date: Thu, 17 Oct 2019 13:48:25 -0400 Subject: [PATCH] Don't initialize Conf in data providers --- tests/cases/REST/TestREST.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/cases/REST/TestREST.php b/tests/cases/REST/TestREST.php index 99864348..d2fb1e90 100644 --- a/tests/cases/REST/TestREST.php +++ b/tests/cases/REST/TestREST.php @@ -100,8 +100,8 @@ class TestREST extends \JKingWeb\Arsse\Test\AbstractTest { } public function provideAuthenticationChallenges() { - self::setConf(); - $default = 'Basic realm="'.Arsse::$conf->httpRealm.'", charset="UTF-8"'; + $realm = (new \ReflectionClass(\JKingWeb\Arsse\Conf::class))->getDefaultProperties()['httpRealm']; + $default = 'Basic realm="'.$realm.'", charset="UTF-8"'; return [ [new EmptyResponse(401), new EmptyResponse(401, ['WWW-Authenticate' => $default])], [new EmptyResponse(401), new EmptyResponse(401, ['WWW-Authenticate' => 'Basic realm="OOK", charset="UTF-8"']), "OOK"],