public function setContext(RequestContext $context) { $this->router->setContext($context); }
/** * Tests the setContext() method. */ public function testSetContext() { $generator = new UrlGenerator(new ParentUrlGenerator(new RouteCollection(), new RequestContext()), $this->mockContaoFramework(), false); $context = new RequestContext(); $generator->setContext($context); $this->assertSame($context, $generator->getContext()); }