Neos\Flow\Tests\Functional\Persistence\Fixtures\SuperEntity::setContent PHP Method

setContent() public method

public setContent ( string $content ) : void
$content string
return void
    public function setContent($content)
    {
        $this->content = $content;
    }

Usage Example

 /**
  * @test
  */
 public function findAllReturnsSubTypesOfTheManagedType()
 {
     $this->superEntityRepository = $this->objectManager->get(Fixtures\SuperEntityRepository::class);
     $superEntity = new Fixtures\SuperEntity();
     $superEntity->setContent('this is the super entity');
     $this->superEntityRepository->add($superEntity);
     $subEntity = new Fixtures\SubEntity();
     $subEntity->setContent('this is the sub entity');
     $this->superEntityRepository->add($subEntity);
     $this->persistenceManager->persistAll();
     $this->assertEquals(2, $this->superEntityRepository->findAll()->count());
 }