8000 [Form] fixed tests · symfony/symfony@ceb5ce6 · GitHub
[go: up one dir, main page]

Skip to content

Commit ceb5ce6

Browse files
committed
[Form] fixed tests
1 parent a1e3a59 commit ceb5ce6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Symfony/Component/Form/Tests/AbstractLayoutTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -947,12 +947,12 @@ public function testDateTimeSingleText()
947947
'/div
948948
[
949949
./input
950-
[@type="text"]
950+
[@type="date"]
951951
[@id="name_date"]
952952
[@name="name[date]"]
953953
[@value="Feb 3, 2011"]
954954
/following-sibling::input
955-
[@type="text"]
955+
[@type="time"]
956956
[@id="name_time"]
957957
[@name="name[time]"]
958958
[@value="04:05"]
@@ -970,7 +970,7 @@ public function testDateTimeWithWidgetSingleText()
970970

971971
$this->assertWidgetMatchesXpath($form->createView(), array(),
972972
'/input
973-
[@type="text"]
973+
[@type="datetime"]
974974
[@name="name"]
975975
[@value="2011-02-03 04:05"]
976976
'
@@ -988,7 +988,7 @@ public function testDateTimeWithWidgetSingleTextIgnoreDateAndTimeWidgets()
988988

989989
$this->assertWidgetMatchesXpath($form->createView(), array(),
990990
'/input
991-
[@type="text"]
991+
[@type="datetime"]
992992
[@name="name"]
993993
[@value="2011-02-03 04:05"]
994994
'
@@ -1111,7 +1111,7 @@ public function testDateSingleText()
11111111

11121112
$this->assertWidgetMatchesXpath($form->createView(), array(),
11131113
'/input
1114-
[@type="text"]
1114+
[@type="date"]
11151115
[@name="name"]
11161116
[@value="Feb 3, 2011"]
11171117
'
@@ -1586,7 +1586,7 @@ public function testTimeSingleText()
15861586

15871587
$this->assertWidgetMatchesXpath($form->createView(), array(),
15881588
'/input
1589-
[@type="text"]
1589+
[@type="time"]
15901590
[@name="name"]
15911591
[@value="04:05"]
15921592
'

0 commit comments

Comments
 (0)
0