Getting a “No default module defined for this application” exception while running controller unit tests in zend framework

后端 未结 2 1050
南笙
南笙 2021-02-14 01:18

I have an application with the default directory structure, for an application without custom modules (see structure figure at the end).

I have written a ControllerTes

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-14 01:54

    My solution was to include this line after parent::setUp()

    $this->_application->getBootstrap()->getPluginResource('frontcontroller')->init();
    

提交回复
热议问题