Skip to content

Commit cab60df

Browse files
turegjorupclaude
andcommitted
test: use app.example.org subdomain for application-side URLs
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent dcc72ec commit cab60df

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/Command/UserLoginCommandTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ public function testExecuteSuccess(): void
4444

4545
$this->stubUrlGenerator
4646
->method('generate')
47-
->willReturn('https://example.org/login?loginToken=generated-token');
47+
->willReturn('https://app.example.org/login?loginToken=generated-token');
4848

4949
$tester = new CommandTester($this->command);
5050
$result = $tester->execute(['username' => 'testuser']);
5151

5252
$this->assertSame(Command::SUCCESS, $result);
53-
$this->assertStringContainsString('https://example.org/login?loginToken=generated-token', $tester->getDisplay());
53+
$this->assertStringContainsString('https://app.example.org/login?loginToken=generated-token', $tester->getDisplay());
5454
}
5555

5656
public function testExecutePassesTokenAndRouteToUrlGenerator(): void
@@ -63,7 +63,7 @@ public function testExecutePassesTokenAndRouteToUrlGenerator(): void
6363
$urlGenerator->expects($this->once())
6464
->method('generate')
6565
->with('cli_login_route', ['loginToken' => 'generated-token'], UrlGeneratorInterface::ABSOLUTE_URL)
66-
->willReturn('https://example.org/login?loginToken=generated-token');
66+
->willReturn('https://app.example.org/login?loginToken=generated-token');
6767

6868
$command = new UserLoginCommand(
6969
$this->stubCliLoginHelper,

0 commit comments

Comments
 (0)