Former\LiveValidationTest::testCanRestrictMimeTypes PHP Method

testCanRestrictMimeTypes() public method

    public function testCanRestrictMimeTypes()
    {
        $this->former->withRules(array('foo' => 'mimes:jpg,gif'));
        $input = $this->former->file('foo')->__toString();
        $matcher = $this->matchField(array('accept' => 'image/jpeg,image/gif'), 'file');
        $this->assertControlGroup($input);
        $this->assertHTML($matcher, $input);
    }
LiveValidationTest