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