Neos\FluidAdaptor\Tests\Functional\Form\FormObjectsTest::objectIsNotModifiedOnFormError PHP Метод

objectIsNotModifiedOnFormError() публичный Метод

    public function objectIsNotModifiedOnFormError()
    {
        $postIdentifier = $this->setupDummyPost();
        $this->browser->request('http://localhost/test/fluid/formobjects/edit?fooPost=' . $postIdentifier);
        $form = $this->browser->getForm();
        $form['post']['name']->setValue('Hello World');
        $form['post']['author']['emailAddress']->setValue('test_noValidEmail');
        $response = $this->browser->submit($form);
        $this->assertNotSame('Hello World|test_noValidEmail', $response->getContent());
        $this->persistenceManager->clearState();
        $post = $this->persistenceManager->getObjectByIdentifier($postIdentifier, \Neos\FluidAdaptor\Tests\Functional\Form\Fixtures\Domain\Model\Post::class);
        $this->assertNotSame('test_noValidEmail', $post->getAuthor()->getEmailAddress(), 'The invalid email address "' . $post->getAuthor()->getEmailAddress() . '" was persisted!');
    }