Neos\FluidAdaptor\Tests\Functional\Form\FormObjectsTest::objectCanBeModifiedAfterFormError PHP Method

objectCanBeModifiedAfterFormError() public method

    public function objectCanBeModifiedAfterFormError()
    {
        $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');
        $this->browser->submit($form);
        $this->assertSame($postIdentifier, $this->browser->getCrawler()->filterXPath('//input[@name="post[__identity]"]')->attr('value'));
        $form['post']['name']->setValue('Hello World');
        $form['post']['author']['emailAddress']->setValue('[email protected]');
        $response = $this->browser->submit($form);
        $this->assertSame('Hello World|[email protected]', $response->getContent());
        $post = $this->persistenceManager->getObjectByIdentifier($postIdentifier, \Neos\FluidAdaptor\Tests\Functional\Form\Fixtures\Domain\Model\Post::class);
        $this->assertSame('[email protected]', $post->getAuthor()->getEmailAddress());
    }