Skip to content

Commit cb69833

Browse files
committed
add in testRenderPatchFormOpen method to test patch method on FormOpen.php
1 parent f41e8d1 commit cb69833

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/FormOpenTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ public function testRenderPutFormOpen()
4545
$this->assertEquals($expected, $result);
4646
}
4747

48+
public function testRenderPatchFormOpen()
49+
{
50+
$form = new FormOpen;
51+
$expected = '<form method="POST" action=""><input type="hidden" name="_method" value="PATCH">';
52+
$result = $form->patch()->render();
53+
54+
$this->assertEquals($expected, $result);
55+
}
56+
4857
public function testRenderDeleteFormOpen()
4958
{
5059
$form = new FormOpen;

0 commit comments

Comments
 (0)