diff --git a/src/AdamWathan/Form/Elements/FormOpen.php b/src/AdamWathan/Form/Elements/FormOpen.php index ac13354..4386975 100644 --- a/src/AdamWathan/Form/Elements/FormOpen.php +++ b/src/AdamWathan/Form/Elements/FormOpen.php @@ -54,6 +54,11 @@ public function put() return $this->setHiddenMethod('PUT'); } + public function patch() + { + return $this->setHiddenMethod('PATCH'); + } + public function delete() { return $this->setHiddenMethod('DELETE'); diff --git a/tests/FormOpenTest.php b/tests/FormOpenTest.php index 9fa1652..ba212e8 100644 --- a/tests/FormOpenTest.php +++ b/tests/FormOpenTest.php @@ -45,6 +45,15 @@ public function testRenderPutFormOpen() $this->assertEquals($expected, $result); } + public function testRenderPatchFormOpen() + { + $form = new FormOpen; + $expected = '