/** * @test */ public function propertiesThatStartWithIsAreStillAccessedNormally() { $post = new Post(); $post->setPrivate(true); $this->view->assignMultiple(array('post' => $post)); $this->view->setTemplateSource('<f:if condition="{post.isprivate}">Private!</f:if>'); $actual = $this->view->render(); $this->assertSame('', $actual); }
/** * @return string UUID of the dummy post */ protected function setupDummyPost() { $author = new Fixtures\Domain\Model\User(); $author->setEmailAddress('*****@*****.**'); $post = new Fixtures\Domain\Model\Post(); $post->setAuthor($author); $post->setName('myName'); $this->persistenceManager->add($post); $postIdentifier = $this->persistenceManager->getIdentifierByObject($post); $this->persistenceManager->persistAll(); $this->persistenceManager->clearState(); return $postIdentifier; }
/** * @param \TYPO3\Fluid\Tests\Functional\Form\Fixtures\Domain\Model\Post $post * @return string */ public function updateAction(\TYPO3\Fluid\Tests\Functional\Form\Fixtures\Domain\Model\Post $post) { return $post->getName() . '|' . $post->getAuthor()->getEmailAddress(); }
/** * @test */ public function nonExistingIsMethodWillNotThrowError() { $post = new Post(); $post->setPrivate(true); $this->view->assignMultiple(array('post' => $post)); $this->view->setTemplateSource('<f:if condition="{post.isNonExisting}">Wrong!</f:if>'); $actual = $this->view->render(); $this->assertSame('', $actual); }