Skip to content

Commit 3207842

Browse files
committed
test: update assertion URL (add index.php/)
1 parent 9827e0e commit 3207842

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/system/CommonFunctionsTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,10 @@ public function testForceHttpsNullRequestAndResponse(): void
609609
force_https();
610610
} catch (Exception $e) {
611611
$this->assertInstanceOf(RedirectException::class, $e);
612-
$this->assertSame('https://example.com/', $e->getResponse()->header('Location')->getValue());
612+
$this->assertSame(
613+
'https://example.com/index.php/',
614+
$e->getResponse()->header('Location')->getValue()
615+
);
613616
$this->assertFalse($e->getResponse()->hasCookie('force'));
614617
$this->assertSame('header', $e->getResponse()->getHeaderLine('Force'));
615618
$this->assertSame('', $e->getResponse()->getBody());

0 commit comments

Comments
 (0)