Skip to content

Commit aa3417b

Browse files
committed
Append path support
1 parent a6b3b16 commit aa3417b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/LinkBuilderTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ public function testAsUrl()
6060
$lb->setQuery(['a' => 1, 'b' => 2]);
6161
self::assertEquals('https://secure.cubex.com/order?a=1&b=2', $lb);
6262

63+
$lb->appendPath('step');
64+
self::assertEquals('https://secure.cubex.com/order/step?a=1&b=2', $lb);
65+
6366
$resp = $lb->toRedirect(301);
6467
$this->assertInstanceOf(RedirectResponse::class, $resp);
6568
$this->assertEquals(301, $resp->getStatusCode());

0 commit comments

Comments
 (0)