setTitle() public method

public setTitle ( string $title ) : void
$title string
return void
 /**
  * @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());
 }
 /**
  * @test
  */
 public function validatorBehavesCorrectlyOnDuplicateEntityWithSingleConfiguredIdentityProperty()
 {
     $validator = new \Neos\Flow\Validation\Validator\UniqueEntityValidator(['identityProperties' => ['title']]);
     $post = new Post();
     $post->setTitle('The title of the initial post');
     $this->postRepository->add($post);
     $this->persistenceManager->persistAll();
     $this->persistenceManager->clearState();
     $differentPost = new Post();
     $differentPost->setTitle('A different title');
     $this->assertFalse($validator->validate($differentPost)->hasErrors());
     $nextPost = new Post();
     $nextPost->setTitle('The title of the initial post');
     $this->assertTrue($validator->validate($nextPost)->hasErrors());
 }
 /**
  * @test
  */
 public function comlexQueryWithJoinsCanBeExecutedAfterDeserialization()
 {
     $postEntityRepository = new Fixtures\PostRepository();
     $postEntityRepository->removeAll();
     $commentRepository = new Fixtures\CommentRepository();
     $commentRepository->removeAll();
     $testEntity1 = new Fixtures\Post();
     $testEntity1->setTitle('Flow');
     $postEntityRepository->add($testEntity1);
     $testEntity2 = new Fixtures\Post();
     $testEntity2->setTitle('Flow with comment');
     $comment = new Fixtures\Comment();
     $comment->setContent('Flow');
     $testEntity2->setComment($comment);
     $postEntityRepository->add($testEntity2);
     $commentRepository->add($comment);
     $this->persistenceManager->persistAll();
     $query = new Query(Fixtures\Post::class);
     $query->matching($query->equals('comment.content', 'Flow'));
     $serializedQuery = serialize($query);
     $unserializedQuery = unserialize($serializedQuery);
     $this->assertEquals(1, $unserializedQuery->execute()->count());
     $this->assertEquals([$testEntity2], $unserializedQuery->execute()->toArray());
 }