From 43e8df1be225ffde52596bf849156e2c265d2430 Mon Sep 17 00:00:00 2001 From: kenjis Date: Thu, 23 Feb 2023 16:16:40 +0900 Subject: [PATCH] test: update URLs in assertions --- tests/system/CodeIgniterTest.php | 4 ++-- tests/system/HTTP/ResponseTest.php | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/system/CodeIgniterTest.php b/tests/system/CodeIgniterTest.php index 4c6ec5ce8689..d2a7304af7c0 100644 --- a/tests/system/CodeIgniterTest.php +++ b/tests/system/CodeIgniterTest.php @@ -438,7 +438,7 @@ public function testRunForceSecure() $codeigniter->run(); ob_get_clean(); - $this->assertSame('https://example.com/', $response->header('Location')->getValue()); + $this->assertSame('https://example.com/index.php/', $response->header('Location')->getValue()); } public function testRunRedirectionWithNamed() @@ -549,7 +549,7 @@ public function testStoresPreviousURL() ob_get_clean(); $this->assertArrayHasKey('_ci_previous_url', $_SESSION); - $this->assertSame('http://example.com/index.php', $_SESSION['_ci_previous_url']); + $this->assertSame('http://example.com/index.php/', $_SESSION['_ci_previous_url']); } public function testNotStoresPreviousURL() diff --git a/tests/system/HTTP/ResponseTest.php b/tests/system/HTTP/ResponseTest.php index 6ad18e7f0e11..4bc21aeaa819 100644 --- a/tests/system/HTTP/ResponseTest.php +++ b/tests/system/HTTP/ResponseTest.php @@ -172,7 +172,7 @@ public function testSetLink() $response->setLink($pager); $this->assertSame( - '; rel="first",; rel="prev",; rel="next",; rel="last"', + '; rel="first",; rel="prev",; rel="next",; rel="last"', $response->header('Link')->getValue() ); @@ -180,7 +180,7 @@ public function testSetLink() $response->setLink($pager); $this->assertSame( - '; rel="next",; rel="last"', + '; rel="next",; rel="last"', $response->header('Link')->getValue() ); @@ -188,7 +188,7 @@ public function testSetLink() $response->setLink($pager); $this->assertSame( - '; rel="first",; rel="prev"', + '; rel="first",; rel="prev"', $response->header('Link')->getValue() ); }