Contao\CoreBundle\Test\Routing\UrlGeneratorTest::testSetContext PHP Method

testSetContext() public method

Tests the setContext() method.
public testSetContext ( )
    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());
    }