Former\LiveValidationTest::testCanSetNestedBracketFieldAsRequired PHP Метод

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

    public function testCanSetNestedBracketFieldAsRequired()
    {
        $this->former->withRules(array('foo[bar]' => 'required'));
        $input = $this->former->text('foo[bar]')->name('foo')->__toString();
        $this->assertHTML($this->matchField(array('required' => 'true')), $input);
        $this->assertLabel($input, 'foo', true);
        $this->assertHTML($this->matchControlGroup(), $input);
    }
LiveValidationTest