Neos\Flow\Tests\Functional\Persistence\PersistenceTest::insertExampleEntity PHP Method

insertExampleEntity() protected method

Helper which inserts example data into the database.
protected insertExampleEntity ( string $name = 'Flow' )
$name string
    protected function insertExampleEntity($name = 'Flow')
    {
        $testEntity = new Fixtures\TestEntity();
        $testEntity->setName($name);
        $this->testEntityRepository->add($testEntity);
        $this->persistenceManager->persistAll();
        $this->persistenceManager->clearState();
    }
PersistenceTest