/** * @depends testCreate * @param ObjectMapper $corma */ public function testGetRepository(ObjectMapper $corma) { $repository = $corma->getRepository('ExtendedDataObject'); $this->assertInstanceOf(ExtendedDataObjectRepository::class, $repository); }
public function setUp() { $this->dispatcher = new EventDispatcher(); $this->objectMapper = ObjectMapper::withDefaults(self::$connection, ['Corma\\Test\\Fixtures']); $this->repository = $this->objectMapper->getRepository(ExtendedDataObject::class); }