Skip to content

Commit 253b401

Browse files
committed
test: update assertion URL (add index.php/)
1 parent bc17936 commit 253b401

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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()
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)