/** * @ticket SW-5148 */ public function testStartDispatch() { $front = Shopware()->Front(); $request = new \Enlight_Controller_Request_RequestTestCase(); $request->setClientIp('127.0.0.1'); $front->setRequest($request); $eventArgs = $this->createEventArgs()->set('subject', $front); $plugin = Shopware()->Plugins()->Core()->Debug(); $plugin->Config()->AllowIP = '127.0.0.1'; $plugin->onStartDispatch($eventArgs); $this->assertInstanceOf('Shopware_Plugins_Core_Debug_Bootstrap', $plugin); }