示例#1
0
 /**
  * @depends testCreate
  * @param ObjectMapper $corma
  */
 public function testGetRepository(ObjectMapper $corma)
 {
     $repository = $corma->getRepository('ExtendedDataObject');
     $this->assertInstanceOf(ExtendedDataObjectRepository::class, $repository);
 }
示例#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);
 }