Skip to content

Commit

Permalink
Test Route::setArgument and Route::setArguments chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-cz committed Aug 10, 2018
1 parent 0618c56 commit 35f1a6f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/RouteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ public function testArgumentSetting()
$this->assertSame($route->getArguments(), ['a' => 'b']);
$this->assertSame($route->getArgument('a', 'default'), 'b');
$this->assertSame($route->getArgument('b', 'default'), 'default');

$this->assertEquals($route, $route->setArgument('c', null));
$this->assertEquals($route, $route->setArguments(['d' => null]);
}


Expand Down

0 comments on commit 35f1a6f

Please sign in to comment.