Eccube\Tests\Application\UrlGeneratorTraitTest::testUrl PHP Method

testUrl() public method

public testUrl ( )
    public function testUrl()
    {
        $app = $this->app;
        $app['url_generator'] = $translator = $this->getMockBuilder('Symfony\\Component\\Routing\\Generator\\UrlGeneratorInterface')->disableOriginalConstructor()->getMock();
        $translator->expects($this->once())->method('generate')->with('foo', array(), true);
        $app->url('foo');
    }
UrlGeneratorTraitTest