Skip to content

Commit 00451d3

Browse files
committed
Added extra assertion to make sure URLs remain intact if there is no trailing slash
1 parent 7101f7d commit 00451d3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/Jira/ApiTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,10 @@ public function testSetEndpointTrailingSlash()
1919
{
2020
$api = new Api('https://test.test/', new Anonymous(), null);
2121
$this->assertEquals('https://test.test', $api->getEndpoint());
22+
23+
// Make sure nothing is removed if there is no trailing slash
24+
$url = 'https://urlwithouttrailing.slash';
25+
$api->setEndPoint($url);
26+
$this->assertEquals($url, $api->getEndpoint());
2227
}
2328
}

0 commit comments

Comments
 (0)