Eccube\Tests\Form\Type\Master\ZipTypeTest::testRequiredAddNotBlank_Zip01 PHP Method

testRequiredAddNotBlank_Zip01() public method

    public function testRequiredAddNotBlank_Zip01()
    {
        $app = $this->createApplication();
        $this->form = $app['form.factory']->createBuilder('form', null, array('csrf_protection' => false))->add('zip', 'zip', array('required' => true))->getForm();
        $this->formData['zip']['zip01'] = '';
        $this->form->submit($this->formData);
        $this->assertFalse($this->form->isValid());
    }