public function testGetEntityRepositoryForClassNotManageableEntity() { $class = 'ItemStub'; $this->setExpectedException('Oro\\Bundle\\EntityBundle\\Exception\\NotManageableEntityException', sprintf('Entity class "%s" is not manageable', $class)); $this->registry->expects($this->once())->method('getManagerForClass')->with($class)->will($this->returnValue(null)); $this->doctrineHelper->getEntityRepositoryForClass($class); }