public function testRoutes() { $app = $this->getApp(); $event = $this->getMockMountEvent(); $event->expects($this->exactly(2))->method('mount'); $ext = new ControllerExtension(); $ext->setContainer($app); $ext->onMountRoutes($event); }
public function testRoutes() { $app = $this->getApp(); $event = $this->getMock('Bolt\\Events\\MountEvent', ['mount'], [$app, $app['controllers']]); $event->expects($this->exactly(2))->method('mount'); $ext = new ControllerExtension(); $ext->setContainer($app); $ext->onMountRoutes($event); }