setJsonArray() 공개 메소드

public setJsonArray ( array $jsonArray = null )
$jsonArray array
 /**
  * @test
  */
 public function jsonArrayIsPersistedAndIsReconstituted()
 {
     $extendedTypesEntity = new Fixtures\ExtendedTypesEntity();
     $extendedTypesEntity->setJsonArray(['foo' => 'bar']);
     $this->persistenceManager->add($extendedTypesEntity);
     $this->persistenceManager->persistAll();
     $this->persistenceManager->clearState();
     /**  @var Fixtures\ExtendedTypesEntity $persistedExtendedTypesEntity */
     $persistedExtendedTypesEntity = $this->extendedTypesEntityRepository->findAll()->getFirst();
     $this->assertInstanceOf(Fixtures\ExtendedTypesEntity::class, $persistedExtendedTypesEntity);
     $this->assertEquals(['foo' => 'bar'], $persistedExtendedTypesEntity->getJsonArray());
 }