Hello,

I am keeping to get the following error:

1) MyTest\Controller\OverviewControllerTest::testEditActionAcceptsId
Zend\ServiceManager\Exception\ServiceNotFoundException:
Zend\ServiceManager\Serv
iceManager::get was unable to fetch or create an instance for
myt\EntityRepository\Product


this is how I Run the test:



   $sm = ServiceManagerFactory::getServiceManager();
        $this->repository = $sm->get( 'Kasjroet\EntityRepository\Product');
        $this->assertInstanceOf('Kasjroet\EntityRepository\Product',
$this->repository);

Any suggestions?

Thanks,

J. Sanders

Reply via email to