소스 검색

[Form] Synced custom pattern tests with master branch

Matthieu Vachon 14 년 전
부모
커밋
58f869a920
1개의 변경된 파일10개의 추가작업 그리고 10개의 파일을 삭제
  1. 10 10
      tests/Symfony/Tests/Component/Form/Extension/Core/Type/DateTypeTest.php

+ 10 - 10
tests/Symfony/Tests/Component/Form/Extension/Core/Type/DateTypeTest.php

@@ -183,8 +183,8 @@ class DateTypeTest extends LocalizedTestCase
         $form = $this->factory->create('date', null, array(
             'data_timezone' => 'UTC',
             'user_timezone' => 'UTC',
-            'pattern' => 'MM*yyyy*dd',
-            'widget' => 'text',
+            'format' => 'MM*yyyy*dd',
+            'widget' => 'single-text',
             'input' => 'datetime',
         ));
 
@@ -199,8 +199,8 @@ class DateTypeTest extends LocalizedTestCase
         $form = $this->factory->create('date', null, array(
             'data_timezone' => 'UTC',
             'user_timezone' => 'UTC',
-            'pattern' => 'MM*yyyy*dd',
-            'widget' => 'text',
+            'format' => 'MM*yyyy*dd',
+            'widget' => 'single-text',
             'input' => 'string',
         ));
 
@@ -215,8 +215,8 @@ class DateTypeTest extends LocalizedTestCase
         $form = $this->factory->create('date', null, array(
             'data_timezone' => 'UTC',
             'user_timezone' => 'UTC',
-            'pattern' => 'MM*yyyy*dd',
-            'widget' => 'text',
+            'format' => 'MM*yyyy*dd',
+            'widget' => 'single-text',
             'input' => 'timestamp',
         ));
 
@@ -233,8 +233,8 @@ class DateTypeTest extends LocalizedTestCase
         $form = $this->factory->create('date', null, array(
             'data_timezone' => 'UTC',
             'user_timezone' => 'UTC',
-            'pattern' => 'MM*yyyy*dd',
-            'widget' => 'text',
+            'format' => 'MM*yyyy*dd',
+            'widget' => 'single-text',
             'input' => 'array',
         ));
 
@@ -551,10 +551,10 @@ class DateTypeTest extends LocalizedTestCase
         $this->assertSame('{{ day }}.{{ month }}.{{ year }}', $view->get('date_pattern'));
     }
     
-    public function testPassDatePatternToView_differentPattern()
+    public function testPassDatePatternToViewDifferentPattern()
     {
         $form = $this->factory->create('date', null, array(
-            'pattern' => 'MM*yyyy*dd'
+            'format' => 'MM*yyyy*dd'
         ));
         
         $view = $form->createView();