Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9efdb4c

Browse files
committed
Fixed broken tests
1 parent cf4e956 commit 9efdb4c

File tree

3 files changed

+200
-234
lines changed

3 files changed

+200
-234
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/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)