/** * @test */ public function simpleArrayIsPersistedAndIsReconstituted() { $extendedTypesEntity = new ExtendedTypesEntity(); $extendedTypesEntity->setSimpleArray(array('foo' => 'bar')); $this->persistenceManager->add($extendedTypesEntity); $this->persistenceManager->persistAll(); $this->persistenceManager->clearState(); /** @var ExtendedTypesEntity $persistedExtendedTypesEntity */ $persistedExtendedTypesEntity = $this->extendedTypesEntityRepository->findAll()->getFirst(); $this->assertInstanceOf(\TYPO3\Flow\Tests\Functional\Persistence\Fixtures\ExtendedTypesEntity::class, $persistedExtendedTypesEntity); $this->assertEquals(array('bar'), $persistedExtendedTypesEntity->getSimpleArray()); }