[Form] fixed tests
This commit is contained in:
parent
47a8b4dc58
commit
9650b50436
@ -79,7 +79,7 @@ class DateTypeTest extends TestCase
|
|||||||
|
|
||||||
public function testSubmitFromSingleTextDateTimeWithCustomFormat()
|
public function testSubmitFromSingleTextDateTimeWithCustomFormat()
|
||||||
{
|
{
|
||||||
$form = $this->factory->create('date', null, array(
|
$form = $this->factory->create('Symfony\Component\Form\Extension\Core\Type\DateType', null, array(
|
||||||
'model_timezone' => 'UTC',
|
'model_timezone' => 'UTC',
|
||||||
'view_timezone' => 'UTC',
|
'view_timezone' => 'UTC',
|
||||||
'widget' => 'single_text',
|
'widget' => 'single_text',
|
||||||
@ -379,7 +379,7 @@ class DateTypeTest extends TestCase
|
|||||||
*/
|
*/
|
||||||
public function testThrowExceptionIfFormatMissesYearMonthAndDayWithSingleTextWidget()
|
public function testThrowExceptionIfFormatMissesYearMonthAndDayWithSingleTextWidget()
|
||||||
{
|
{
|
||||||
$this->factory->create('date', null, array(
|
$this->factory->create('Symfony\Component\Form\Extension\Core\Type\DateType', null, array(
|
||||||
'widget' => 'single_text',
|
'widget' => 'single_text',
|
||||||
'format' => 'wrong',
|
'format' => 'wrong',
|
||||||
));
|
));
|
||||||
|
Reference in New Issue
Block a user