update tests

This commit is contained in:
root
2026-06-08 22:06:30 -04:00
parent 79024235ef
commit 60ecacb7f8
54 changed files with 13243 additions and 5561 deletions
+3 -3
View File
@@ -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