Skip to content

Commit

Permalink
Moved tests as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Nek- committed Jul 23, 2014
1 parent 9ac0075 commit e609b2c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/Knp/Menu/Tests/Matcher/Voter/RouteVoterTest.php
Expand Up @@ -47,8 +47,7 @@ public function testInvalidRouteConfig()
$request->attributes->set('_route', 'foo');
$request->attributes->set('_route_params', array());

$voter = new RouteVoter();
$voter->setRequest($request);
$voter = new RouteVoter($request);

$voter->matchItem($item);
}
Expand Down Expand Up @@ -82,8 +81,7 @@ public function testMatching($route, array $parameters, $itemRoutes, array $item
$request->attributes->set('_route', $route);
$request->attributes->set('_route_params', $parameters);

$voter = new RouteVoter();
$voter->setRequest($request);
$voter = new RouteVoter($request);

$this->assertSame($expected, $voter->matchItem($item));
}
Expand Down

0 comments on commit e609b2c

Please sign in to comment.