Skip to content

Commit

Permalink
test: update assertion URL (add index.php/)
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Jul 9, 2023
1 parent bc17936 commit 253b401
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/system/CommonFunctionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,10 @@ public function testForceHttpsNullRequestAndResponse()
force_https();
} catch (Exception $e) {
$this->assertInstanceOf(RedirectException::class, $e);
$this->assertSame('https://example.com/', $e->getResponse()->header('Location')->getValue());
$this->assertSame(
'https://example.com/index.php/',
$e->getResponse()->header('Location')->getValue()
);
$this->assertFalse($e->getResponse()->hasCookie('force'));
$this->assertSame('header', $e->getResponse()->getHeaderLine('Force'));
$this->assertSame('', $e->getResponse()->getBody());
Expand Down

0 comments on commit 253b401

Please sign in to comment.