8000 Fixed form abstract layout tests to consider that empty placeholders … · symfony/symfony@d68c8cd · GitHub
[go: up one dir, main page]

Skip to content

Commit d68c8cd

Browse files
committed
Fixed form abstract layout tests to consider that empty placeholders ('empty_value' option) are no longer translated.
1 parent e585273 commit d68c8cd

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
@@ -505,7 +505,7 @@ public function testSingleChoiceNonRequired()
505505
[@name="name"]
506506
[not(@required)]
507507
[
508-
./option[@value=""][.="[trans][/trans]"]
508+
./option[@value=""][.=""]
509509
/following-sibling::option[@value="&a"][@selected="selected"][.="[trans]Choice&A[/trans]"]
510510
/following-sibling::option[@value="&b"][not(@selected)][.="[trans]Choice&B[/trans]"]
511511
]
@@ -528,7 +528,7 @@ public function testSingleChoiceNonRequiredNoneSelected()
528528
[@name="name"]
529529
[not(@required)]
530530
[
531-
./option[@value=""][.="[trans][/trans]"]
531+
./option[@value=""][.=""]
532532
/following-sibling::option[@value="&a"][not(@selected)][.="[trans]Choice&A[/trans]"]
533533
/following-sibling::option[@value="&b"][not(@selected)][.="[trans]Choice&B[/trans]"]
534534
]
@@ -605,7 +605,7 @@ public function testSingleChoiceRequiredWithEmptyValueViaView()
605605
[@name="name"]
606606
[@required="required"]
607607
[
608-
./option[@value=""][not(@selected)][not(@disabled)][.="[trans][/trans]"]
608+
./option[@value=""][not(@selected)][not(@disabled)][.=""]
609609
/following-sibling::option[@value="&a"][@selected="selected"][.="[trans]Choice&A[/trans]"]
610610
/following-sibling::option[@value="&b"][not(@selected)][.="[trans]Choice&B[/trans]"]
611611
]
@@ -1233,15 +1233,15 @@ public function testBirthDayWithEmptyValue()
12331233
[
12341234
./select
12351235
[@id="name_month"]
1236-
[./option[@value=""][not(@selected)][not(@disabled)][.="[trans][/trans]"]]
1236+
[./option[@value=""][not(@selected)][not(@disabled)][.=""]]
12371237
[./option[@value="1"][@selected="selected"]]
12381238
/following-sibling::select
12391239
[@id="name_day"]
1240-
[./option[@value=""][not(@selected)][not(@disabled)][.="[trans][/trans]"]]
1240+
[./option[@value=""][not(@selected)][not(@disabled)][.=""]]
12411241
[./option[@value="1"][@selected="selected"]]
12421242
/following-sibling::select
12431243
[@id="name_year"]
1244-
[./option[@value=""][not(@selected)][not(@disabled)][.="[trans][/trans]"]]
1244+
[./option[@value=""][not(@selected)][not(@disabled)][.=""]]
12451245
[./option[@value="1950"][@selected="selected"]]
12461246
]
12471247
[count(./select)=3]

0 commit comments

Comments
 (0)
0