/** * @covers ::set * @covers ::get */ public function testSetAfterGetCall() { $request = Request::create('/'); $request->query->set('destination', '/other-example'); $this->requestStack->push($request); $this->setupUrlGenerator(); $this->redirectDestination->set('/example'); $this->assertEquals('/example', $this->redirectDestination->get()); }