From 652f615dc0a5cda9d0b7f35aa3d7f435a9132f42 Mon Sep 17 00:00:00 2001 From: Antony Thorpe <1023740+AntonyThorpe@users.noreply.github.com> Date: Wed, 6 Dec 2023 19:35:15 +1300 Subject: [PATCH] Remove trailing slash from various tests (#808) --- tests/php/Checkout/NestedCheckoutTest.php | 2 +- tests/php/Page/AccountPageTest.php | 2 +- tests/php/Page/CheckoutPageTest.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/php/Checkout/NestedCheckoutTest.php b/tests/php/Checkout/NestedCheckoutTest.php index a3538080..c2e0f6e7 100644 --- a/tests/php/Checkout/NestedCheckoutTest.php +++ b/tests/php/Checkout/NestedCheckoutTest.php @@ -19,7 +19,7 @@ public function testNestedCheckoutForm() { // NOTE: the "myshop" here comes from the fixtures $this->assertEquals( - Director::baseURL() . 'myshop/checkout/', + Director::baseURL() . 'myshop/checkout', CheckoutPage::find_link(), 'Link is: ' . CheckoutPage::find_link() ); diff --git a/tests/php/Page/AccountPageTest.php b/tests/php/Page/AccountPageTest.php index 7ee3a5bf..e1ec6693 100644 --- a/tests/php/Page/AccountPageTest.php +++ b/tests/php/Page/AccountPageTest.php @@ -78,7 +78,7 @@ public function testCanViewAccountPage() public function testGlobals() { $this->assertFalse($this->accountpage->canCreate(), "account page exists"); - $this->assertEquals(Director::baseURL() . "account/", AccountPage::find_link()); + $this->assertEquals(Director::baseURL() . "account", AccountPage::find_link()); $this->assertEquals(Director::baseURL() . "account/order/10", AccountPage::get_order_link(10)); } diff --git a/tests/php/Page/CheckoutPageTest.php b/tests/php/Page/CheckoutPageTest.php index bbabda31..1cf03b76 100644 --- a/tests/php/Page/CheckoutPageTest.php +++ b/tests/php/Page/CheckoutPageTest.php @@ -65,7 +65,7 @@ public function testFindLink() $checkoutpage->publishSingle(); $link = CheckoutPage::find_link(); $this->assertEquals( - Director::baseURL() . 'checkout/', + Director::baseURL() . 'checkout', $link, 'find_link() returns the correct link to checkout.' );