コード例 #1
0
ファイル: ObjectMapperTest.php プロジェクト: thewunder/corma
 /**
  * @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);
 }