/** * Tests the create method. */ public function testCreate() { $contactManager = new ContactManager('Mremi\\ContactBundle\\Model\\Contact'); $this->assertInstanceOf('Mremi\\ContactBundle\\Model\\Contact', $contactManager->create()); }
/** * Constructor. * * @param string $class The Contact class namespace * @param ManagerRegistry $registry A manager registry instance */ public function __construct($class, ManagerRegistry $registry) { parent::__construct($class); $this->registry = $registry; }