AdamWathan\Form\Elements\FormOpen::patch PHP Method

patch() public method

public patch ( )
    public function patch()
    {
        return $this->setHiddenMethod('PATCH');
    }

Usage Example

Ejemplo n.º 1
0
 public function testRenderPatchFormOpen()
 {
     $form = new FormOpen();
     $expected = '<form method="POST" action=""><input type="hidden" name="_method" value="PATCH">';
     $result = $form->patch()->render();
     $this->assertEquals($expected, $result);
 }