[Form] Improved test coverage of UrlType
This commit is contained in:
parent
9a95f520c9
commit
f3e172f6e5
@ -47,6 +47,18 @@ class UrlTypeTest extends TypeTestCase
|
||||
$this->assertSame('', $form->getViewData());
|
||||
}
|
||||
|
||||
public function testSubmitAddsNoDefaultProtocolIfNull()
|
||||
{
|
||||
$form = $this->factory->create('url', null, array(
|
||||
'default_protocol' => 'http',
|
||||
));
|
||||
|
||||
$form->submit(null);
|
||||
|
||||
$this->assertNull($form->getData());
|
||||
$this->assertSame('', $form->getViewData());
|
||||
}
|
||||
|
||||
public function testSubmitAddsNoDefaultProtocolIfSetToNull()
|
||||
{
|
||||
$form = $this->factory->create('url', null, array(
|
||||
|
Reference in New Issue
Block a user