Skip to content

Commit 206bcda

Browse files
Merge branch '4.2'
* 4.2: New extensions were released supporting PHP 7.3 Remove "internal" annotation from datacollector serialization methods replace mocks with real objects in tests [DependencyInjection] fix #29930 add $lazyLoad flag to the generated factory code for lazy non-shared services escape function does not always take a string Fix phpunit 8 compatibility render integer types with grouping as text input ignore _method forms in NativeRequestHandler don't lose int precision with not needed type casts
2 parents 1025007 + 43b80e1 commit 206bcda

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Tests/Extension/AbstractBootstrap3LayoutTest.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1986,6 +1986,22 @@ public function testInteger()
19861986
);
19871987
}
19881988

1989+
public function testIntegerTypeWithGroupingRendersAsTextInput()
1990+
{
1991+
$form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\IntegerType', 123, [
1992+
'grouping' => true,
1993+
]);
1994+
1995+
$this->assertWidgetMatchesXpath($form->createView(), ['attr' => ['class' => 'my&class']],
1996+
'/input
1997+
[@type="text"]
1998+
[@name="name"]
1999+
[@class="my&class form-control"]
2000+
[@value="123"]
2001+
'
2002+
);
2003+
}
2004+
19892005
public function testLanguage()
19902006
{
19912007
$form = $this->factory->createNamed('name', 'Symfony\Component\Form\Extension\Core\Type\LanguageType', 'de');

0 commit comments

Comments
 (0)