eZ\Bundle\EzPublishCoreBundle\Tests\EventListener\SiteAccessListenerTest::setUp PHP Method

setUp() protected method

protected setUp ( )
    protected function setUp()
    {
        parent::setUp();
        $this->container = $this->getMock('Symfony\\Component\\DependencyInjection\\ContainerInterface');
        $this->router = $this->getMockBuilder('eZ\\Bundle\\EzPublishCoreBundle\\Routing\\DefaultRouter')->disableOriginalConstructor()->getMock();
        $this->generator = $this->getMockBuilder('eZ\\Publish\\Core\\MVC\\Symfony\\Routing\\Generator\\UrlAliasGenerator')->disableOriginalConstructor()->getMock();
        $this->listener = new SiteAccessListener($this->router, $this->generator, new HttpUtils());
        $this->listener->setContainer($this->container);
    }