Skip to content

Commit

Permalink
Add a test for empty begin
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw committed Dec 15, 2020
1 parent 1372559 commit 2f9e534
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/Widget/FormTest.php
Expand Up @@ -43,6 +43,13 @@ public function testFormsBegin(): void
$this->assertStringMatchesFormat($expected, $actual);
}

public function testFormEmptyBegin(): void
{
$expected = '<form action="" method="POST">';
$created = Form::widget()->begin();
$this->assertEquals($expected, $created);
}

/**
* Data provider for {@see testFormsBeginSimulateViaPost()}.
*
Expand Down

0 comments on commit 2f9e534

Please sign in to comment.