Skip to content

Commit 6b7a584

Browse files
committed
Fix twig tests using correct form number input type
1 parent 4be3a78 commit 6b7a584

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2137,10 +2137,11 @@ public function testNumber()
21372137

21382138
$this->assertWidgetMatchesXpath($form->createView(), ['attr' => ['class' => 'my&class']],
21392139
'/input
2140-
[@type="text"]
2140+
[@type="number"]
21412141
[@name="name"]
21422142
[@class="my&class form-control"]
21432143
[@value="1234.56"]
2144+
[@step="any"]
21442145
'
21452146
);
21462147
}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1859,9 +1859,10 @@ public function testNumber()
18591859

18601860
$this->assertWidgetMatchesXpath($form->createView(), [],
18611861
'/input
1862-
[@type="text"]
1862+
[@type="number"]
18631863
[@name="name"]
18641864
[@value="1234.56"]
1865+
[@step="any"]
18651866
'
18661867
);
18671868
}

0 commit comments

Comments
 (0)