how to load model in test? and how to load and test controller ?
Fatal Error : Model Not Found!
this works in the controller: #but does not work in the test
namespace Adm;
use Adm\Model\Medico;
Is the module loaded?
When you request it through the URL, the routing engine will load the module for you, but for a test you have to load it manually.
May I ask why you're loading a database model in a unit test? A lot of the time, external things like databases are mocked so you're not relying on them containing the right data.