Skip to content

Commit

Permalink
Updated tests for hotfix/reuse_query_params_default
Browse files Browse the repository at this point in the history
Signed-off-by: sheridans <[email protected]>
  • Loading branch information
sheridans committed Apr 21, 2021
1 parent 3b53995 commit 92129ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/UrlHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ public function testWillReuseQueryParamsIfReuseQueryParamsFlagIsTrueWhenGenerati
$this->assertEquals('URL?foo=bar', $helper('resource', [], [], null, ['reuse_query_params' => true]));
}

public function testWillReuseQueryParamsIfReuseQueryParamsFlagIsMissingGeneratingUri()
public function testWillNotReuseQueryParamsIfReuseQueryParamsFlagIsMissingGeneratingUri()
{
$result = $this->prophesize(RouteResult::class);
$result->isFailure()->willReturn(false);
Expand All @@ -459,7 +459,7 @@ public function testWillReuseQueryParamsIfReuseQueryParamsFlagIsMissingGeneratin
$helper->setRouteResult($result->reveal());
$helper->setRequest($request->reveal());

$this->assertEquals('URL?foo=bar', $helper('resource'));
$this->assertEquals('URL', $helper('resource'));
}

public function testCanOverrideRequestQueryParams()
Expand Down

0 comments on commit 92129ac

Please sign in to comment.