Skip to content

Commit a1cd8ae

Browse files
committed
[Form] Removed invalid tests introduced again upon merge
1 parent e082528 commit a1cd8ae

File tree

2 files changed

+0
-36
lines changed

2 files changed

+0
-36
lines changed

src/Symfony/Component/Form/Tests/Extension/Core/Type/DateTimeTypeTest.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -243,22 +243,4 @@ public function testSingleTextWidgetShouldUseTheRightInputType()
243243
$view = $form->createView();
244244
$this->assertEquals('datetime', $view->getVar('type'));
245245
}
246-
247-
public function testSubmit_invalidDateTimeSingleText()
248-
{
249-
$form = $this->factory->create('datetime', null, array(
250-
'data_timezone' => 'UTC',
251-
'user_timezone' => 'UTC',
252-
'input' => 'datetime',
253-
'widget' => 'single_text',
254-
'invalid_message' => 'Customized invalid message',
255-
));
256-
257-
$form->bind('2012-04-31 03:04:05');
258-
259-
$this->assertFalse($form->isValid());
260-
$this->assertNull($form->getData());
261-
$this->assertEquals('2012-04-31 03:04:05', $form->getClientData());
262-
$this->assertEquals(array(new FormError('Customized invalid message', array())), $form->getErrors());
263-
}
264246
}

src/Symfony/Component/Form/Tests/Extension/Core/Type/DateTypeTest.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -547,22 +547,4 @@ public function testSingleTextWidgetShouldUseTheRightInputType()
547547
$view = $form->createView();
548548
$this->assertEquals('date', $view->getVar('type'));
549549
}
550-
551-
public function testInvalidDateWithSingleTextDateTime()
552-
{
553-
$form = $this->factory->create('date', null, array(
554-
'data_timezone' => 'UTC',
555-
'user_timezone' => 'UTC',
556-
'widget' => 'single_text',
557-
'input' => 'datetime',
558-
'invalid_message' => 'Customized invalid message',
559-
));
560-
561-
$form->bind('31.4.2012');
562-
563-
$this->assertFalse($form->isValid());
564-
$this->assertNull($form->getData());
565-
$this->assertEquals('31.4.2012', $form->getClientData());
566-
$this->assertEquals(array(new FormError('Customized invalid message', array())), $form->getErrors());
567-
}
568550
}

0 commit comments

Comments
 (0)