Excluded templates from test coverage, now up to 89%
This commit is contained in:
parent
c4b1409f13
commit
c8979a4857
@ -20,7 +20,7 @@ class DefaultAuthorizationForm implements AuthorizationFormInterface, LoggerAwar
|
|||||||
public LoggerInterface $logger;
|
public LoggerInterface $logger;
|
||||||
|
|
||||||
public function __construct(?string $formTemplatePath=null, ?string $csrfKey=null, ?LoggerInterface $logger=null) {
|
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->csrfKey = $csrfKey ?? \Taproot\IndieAuth\Server::DEFAULT_CSRF_KEY;
|
||||||
$this->logger = $logger ?? new NullLogger;
|
$this->logger = $logger ?? new NullLogger;
|
||||||
}
|
}
|
||||||
|
@ -22,7 +22,7 @@ class SingleUserPasswordAuthenticationCallback {
|
|||||||
}
|
}
|
||||||
$this->user = $user;
|
$this->user = $user;
|
||||||
$this->hashedPassword = $hashedPassword;
|
$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;
|
$this->csrfKey = $csrfKey ?? \Taproot\IndieAuth\Server::DEFAULT_CSRF_KEY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -69,7 +69,7 @@ class Server {
|
|||||||
'accessTokenStorage' => null,
|
'accessTokenStorage' => null,
|
||||||
'httpGetWithEffectiveUrl' => null,
|
'httpGetWithEffectiveUrl' => null,
|
||||||
'authorizationForm' => new DefaultAuthorizationForm(),
|
'authorizationForm' => new DefaultAuthorizationForm(),
|
||||||
'exceptionTemplatePath' => __DIR__ . '/templates/default_exception_response.html.php',
|
'exceptionTemplatePath' => __DIR__ . '/../templates/default_exception_response.html.php',
|
||||||
'tokenLength' => 64
|
'tokenLength' => 64
|
||||||
], $config);
|
], $config);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user