コード例 #1
0
ファイル: ControllerTraitTest.php プロジェクト: bolt/bolt
 public function testRoutesDefault()
 {
     $app = $this->getApp();
     $event = $this->getMockMountEvent();
     $event->expects($this->exactly(2))->method('mount');
     $ext = new NormalExtension();
     $ext->setContainer($app);
     $ext->onMountRoutes($event);
 }
コード例 #2
0
ファイル: ControllerTraitTest.php プロジェクト: d-m-/bolt
 public function testRoutesDefault()
 {
     $app = $this->getApp();
     $event = $this->getMock('Bolt\\Events\\MountEvent', ['mount'], [$app, $app['controllers']]);
     $event->expects($this->exactly(2))->method('mount');
     $ext = new NormalExtension();
     $ext->setContainer($app);
     $ext->onMountRoutes($event);
 }