8000 Fixed broken tests · symfony/symfony@14e2282 · GitHub
[go: up one dir, main page]

Skip to content

Commit 14e2282

Browse files
Nyholmnicolas-grekas
authored andcommitted
Fixed broken tests
1 parent cf4e956 commit 14e2282

File tree

4 files changed

+202
-236
lines changed

4 files changed

+202
-236
lines changed

src/Symfony/Bridge/Twig/Resources/views/Form/bootstrap_4_layout.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@
217217

218218
{{ widget|raw }}
219219
<label{% for attrname, attrvalue in label_attr %} {{ attrname }}="{{ attrvalue }}"{% endfor %}>
220-
{{ label is not same as(false) ? (translation_domain is same as(false) ? label : label|trans({}, translation_domain)) -}}
220+
{{- label is not same as(false) ? (translation_domain is same as(false) ? label : label|trans({}, translation_domain)) -}}
221221
{{- form_errors(form) -}}
222222
</label>
223223
{%- endif -%}

src/Symfony/Bridge/Twig/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"symfony/asset": "~2.8|~3.0|~4.0",
2424
"symfony/dependency-injection": "~2.8|~3.0|~4.0",
2525
"symfony/finder": "~2.8|~3.0|~4.0",
26-
"symfony/form": "~3.4|~4.0",
26+
"symfony/form": "^3.4.5|^4.0.5",
2727
"symfony/http-foundation": "^3.3.11|~4.0",
2828
"symfony/http-kernel": "~3.2|~4.0",
2929
"symfony/polyfill-intl-icu": "~1.0",
@@ -41,7 +41,7 @@
4141
"symfony/workflow": "~3.3|~4.0"
4242
},
4343
"conflict": {
44-
"symfony/form": "<3.4",
44+
"symfony/form": "<3.4.5",
4545
"symfony/console": "<3.4"
4646
},
4747
"suggest": {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function testLabelOnForm()
5353

5454
$this->assertMatchesXpath($html,
5555
'/legend
56-
[@class="col-form-label col-sm-2 col-form-legend required"]
56+
[@class="col-form-label col-sm-2 col-form-label required"]
5757
[.="[trans]Name[/trans]"]
5858
'
5959
);
@@ -144,7 +144,7 @@ public function testLegendOnExpandedType()
144144

145145
$this->assertMatchesXpath($html,
146146
'/legend
147-
[@class="col-sm-2 col-form-legend required"]
147+
[@class="col-sm-2 col-form-label required"]
148148
[.="[trans]Custom label[/trans]"]
149149
'
150150
);

0 commit comments

Comments
 (0)
0