Skip to content

Commit

Permalink
Remove trailing slash from various tests (#808)
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonyThorpe authored Dec 6, 2023
1 parent d88cfb7 commit 652f615
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/php/Checkout/NestedCheckoutTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
);
Expand Down
2 changes: 1 addition & 1 deletion tests/php/Page/AccountPageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down
2 changes: 1 addition & 1 deletion tests/php/Page/CheckoutPageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.'
);
Expand Down

0 comments on commit 652f615

Please sign in to comment.