Neos\Flow\Tests\Functional\Persistence\Doctrine\RepositoryTest::instancesOfTheManagedTypeCanBeAddedAndRetrieved PHP Метод

instancesOfTheManagedTypeCanBeAddedAndRetrieved() публичный Метод

    public function instancesOfTheManagedTypeCanBeAddedAndRetrieved()
    {
        $this->superEntityRepository = $this->objectManager->get(Fixtures\SuperEntityRepository::class);
        $superEntity = new Fixtures\SuperEntity();
        $superEntity->setContent('this is the super entity');
        $this->superEntityRepository->add($superEntity);
        $this->persistenceManager->persistAll();
        $superEntity = $this->superEntityRepository->findOneByContent('this is the super entity');
        $this->assertEquals('this is the super entity', $superEntity->getContent());
    }