Skip to content

Commit 46645ec

Browse files
committed
minor symfony#31327 [TwigBridge] fix cross-version form theme tests (xabbuh)
This PR was merged into the 3.4 branch. Discussion ---------- [TwigBridge] fix cross-version form theme tests | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Commits ------- 730df08 relax assertions in tests
2 parents e197c9a + 730df08 commit 46645ec

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap3LayoutTest.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2376,11 +2376,7 @@ public function testTimezone()
23762376
[@name="name"]
23772377
[@class="my&class form-control"]
23782378
[not(@required)]
2379-
[./optgroup
2380-
[@label="Europe"]
2381-
[./option[@value="Europe/Vienna"][@selected="selected"][.="Vienna"]]
2382-
]
2383-
[count(./optgroup)>10]
2379+
[.//option[@value="Europe/Vienna"][@selected="selected"]]
23842380
[count(.//option)>200]
23852381
'
23862382
);
@@ -2397,7 +2393,6 @@ public function testTimezoneWithPlaceholder()
23972393
'/select
23982394
[@class="my&class form-control"]
23992395
[./option[@value=""][not(@selected)][not(@disabled)][.="[trans]Select&Timezone[/trans]"]]
2400-
[count(./optgroup)>10]
24012396
[count(.//option)>201]
24022397
'
24032398
);

0 commit comments

Comments
 (0)