Neos\Flow\Tests\Functional\Persistence\Fixtures\Post::setTitle PHP Method

setTitle() public method

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

Usage Example

 /**
  * @test
  */
 public function modificationsOnRetrievedEntitiesArePersistedIfUpdateHasBeenCalled()
 {
     $this->postRepository = $this->objectManager->get(Fixtures\PostRepository::class);
     $post = new Fixtures\Post();
     $post->setTitle('Sample');
     $this->postRepository->add($post);
     $this->persistenceManager->persistAll();
     $post = $this->postRepository->findOneByTitle('Sample');
     $post->setTitle('Modified Sample');
     $this->postRepository->update($post);
     $this->persistenceManager->persistAll();
     $post = $this->postRepository->findOneByTitle('Modified Sample');
     $this->assertNotNull($post);
     $this->assertEquals('Modified Sample', $post->getTitle());
 }
All Usage Examples Of Neos\Flow\Tests\Functional\Persistence\Fixtures\Post::setTitle