Skip to content

Commit 43e8df1

Browse files
committed
test: update URLs in assertions
1 parent b46e177 commit 43e8df1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/system/CodeIgniterTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ public function testRunForceSecure()
438438
$codeigniter->run();
439439
ob_get_clean();
440440

441-
$this->assertSame('https://example.com/', $response->header('Location')->getValue());
441+
$this->assertSame('https://example.com/index.php/', $response->header('Location')->getValue());
442442
}
443443

444444
public function testRunRedirectionWithNamed()
@@ -549,7 +549,7 @@ public function testStoresPreviousURL()
549549
ob_get_clean();
550550

551551
$this->assertArrayHasKey('_ci_previous_url', $_SESSION);
552-
$this->assertSame('http://example.com/index.php', $_SESSION['_ci_previous_url']);
552+
$this->assertSame('http://example.com/index.php/', $_SESSION['_ci_previous_url']);
553553
}
554554

555555
public function testNotStoresPreviousURL()

tests/system/HTTP/ResponseTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,23 +172,23 @@ public function testSetLink()
172172
$response->setLink($pager);
173173

174174
$this->assertSame(
175-
'<http://example.com/test/index.php?page=1>; rel="first",<http://example.com/test/index.php?page=2>; rel="prev",<http://example.com/test/index.php?page=4>; rel="next",<http://example.com/test/index.php?page=20>; rel="last"',
175+
'<http://example.com/test/index.php/?page=1>; rel="first",<http://example.com/test/index.php/?page=2>; rel="prev",<http://example.com/test/index.php/?page=4>; rel="next",<http://example.com/test/index.php/?page=20>; rel="last"',
176176
$response->header('Link')->getValue()
177177
);
178178

179179
$pager->store('default', 1, 10, 200);
180180
$response->setLink($pager);
181181

182182
$this->assertSame(
183-
'<http://example.com/test/index.php?page=2>; rel="next",<http://example.com/test/index.php?page=20>; rel="last"',
183+
'<http://example.com/test/index.php/?page=2>; rel="next",<http://example.com/test/index.php/?page=20>; rel="last"',
184184
$response->header('Link')->getValue()
185185
);
186186

187187
$pager->store('default', 20, 10, 200);
188188
$response->setLink($pager);
189189

190190
$this->assertSame(
191-
'<http://example.com/test/index.php?page=1>; rel="first",<http://example.com/test/index.php?page=19>; rel="prev"',
191+
'<http://example.com/test/index.php/?page=1>; rel="first",<http://example.com/test/index.php/?page=19>; rel="prev"',
192192
$response->header('Link')->getValue()
193193
);
194194
}

0 commit comments

Comments
 (0)