Skip to content

Commit 8464087

Browse files
committed
test: update URLs in assertions
1 parent e68379e commit 8464087

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

tests/system/CodeIgniterTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ public function testRunForceSecure(): void
450450

451451
$response = $codeigniter->run(null, true);
452452

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

456456
public function testRunRedirectionWithNamed(): void
@@ -618,7 +618,7 @@ public function testStoresPreviousURL(): void
618618
ob_get_clean();
619619

620620
$this->assertArrayHasKey('_ci_previous_url', $_SESSION);
621-
$this->assertSame('http://example.com/index.php', $_SESSION['_ci_previous_url']);
621+
$this->assertSame('http://example.com/index.php/', $_SESSION['_ci_previous_url']);
622622
}
623623

624624
public function testNotStoresPreviousURL(): void

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