public function testGet(Request
$request,
$expected_destination) { $this->requestStack->
push($request);
$this->
setupUrlGenerator();
// Call in twice in order to ensure it returns the same the next time.
$this->
assertEquals($expected_destination,
$this->redirectDestination->
get());
$this->
assertEquals($expected_destination,
$this->redirectDestination->
get());
} /**
* @dataProvider providerGet
*
* @covers ::getAsArray
*/