Excluded templates from test coverage, now up to 89%

This commit is contained in:
Barnaby Walters 2021-06-09 00:26:27 +02:00
parent c4b1409f13
commit c8979a4857
6 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@ class DefaultAuthorizationForm implements AuthorizationFormInterface, LoggerAwar
public LoggerInterface $logger;
public function __construct(?string $formTemplatePath=null, ?string $csrfKey=null, ?LoggerInterface $logger=null) {
$this->formTemplatePath = $formTemplatePath ?? __DIR__ . '/../templates/default_authorization_page.html.php';
$this->formTemplatePath = $formTemplatePath ?? __DIR__ . '/../../templates/default_authorization_page.html.php';
$this->csrfKey = $csrfKey ?? \Taproot\IndieAuth\Server::DEFAULT_CSRF_KEY;
$this->logger = $logger ?? new NullLogger;
}

View File

@ -22,7 +22,7 @@ class SingleUserPasswordAuthenticationCallback {
}
$this->user = $user;
$this->hashedPassword = $hashedPassword;
$this->formTemplate = $formTemplate ?? __DIR__ . '/../templates/single_user_password_authentication_form.html.php';
$this->formTemplate = $formTemplate ?? __DIR__ . '/../../templates/single_user_password_authentication_form.html.php';
$this->csrfKey = $csrfKey ?? \Taproot\IndieAuth\Server::DEFAULT_CSRF_KEY;
}

View File

@ -69,7 +69,7 @@ class Server {
'accessTokenStorage' => null,
'httpGetWithEffectiveUrl' => null,
'authorizationForm' => new DefaultAuthorizationForm(),
'exceptionTemplatePath' => __DIR__ . '/templates/default_exception_response.html.php',
'exceptionTemplatePath' => __DIR__ . '/../templates/default_exception_response.html.php',
'tokenLength' => 64
], $config);