update tests
This commit is contained in:
@@ -13,9 +13,9 @@ class AuthSessionServiceTest extends TestCase
|
||||
protected function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
$urls = $this->createMock(ApplicationUrlService::class);
|
||||
$urls->method('docsHomeUrl')->willReturn('http://example.org');
|
||||
$this->svc = new AuthSessionService($urls);
|
||||
// ApplicationUrlService is final (cannot be mocked); these tests only exercise
|
||||
// relative-path sanitization and never call docsHomeUrl().
|
||||
$this->svc = new AuthSessionService(new ApplicationUrlService());
|
||||
}
|
||||
|
||||
public function test_sanitize_redirect_relative(): void
|
||||
|
||||
Reference in New Issue
Block a user