8000 fix tests · symfony/symfony@6d0195f · GitHub
[go: up one dir, main page]

Skip to content

Commit 6d0195f

Browse files
committed
fix tests
1 parent 39aab26 commit 6d0195f

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

src/Symfony/Component/Form/Tests/Command/DebugCommandTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ public function testDebugDeprecatedDefaults()
4242
$this->assertEquals(0, $ret, 'Returns 0 in case of success');
4343
$this->assertSame(<<<TXT
4444
45+
Built-in form types (Symfony\Component\Form\Extension\Core\Type)
46+
----------------------------------------------------------------
47+
48+
PercentType
49+
4550
Service form types
4651
------------------
4752

src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/PercentToLocalizedStringTransformerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function testTransformWithScale()
7777
*/
7878
public function testReverseTransformWithScaleAndRoundingDisabled()
7979
{
80-
$this->expectDeprecation('Since symfony/form 5.1: Not passing a rounding mode to Symfony\Component\Form\Extension\Core\DataTransformer\PercentToLocalizedStringTransformer::__construct() is deprecated. Starting with Symfony 6.0 it will default to Symfony\Component\Form\Extension\Core\DataTransformer\PercentToLocalizedStringTransformer::ROUND_HALF_UP.');
80+
$this->expectDeprecation('Since symfony/form 5.1: Not passing a rounding mode to Symfony\Component\Form\Extension\Core\DataTransformer\PercentToLocalizedStringTransformer::__construct() is deprecated. Starting with Symfony 6.0 it will default to "Symfony\Component\Form\Extension\Core\DataTransformer\PercentToLocalizedStringTransformer::ROUND_HALF_UP".');
8181

8282
$transformer = new PercentToLocalizedStringTransformer(2, PercentToLocalizedStringTransformer::FRACTIONAL);
8383

src/Symfony/Component/Form/Tests/Extension/Core/Type/PercentTypeTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function testSubmitWithRoundingMode()
3939
*/
4040
public function testSubmitWithoutRoundingMode()
4141
{
42-
$this->expectDeprecation('Since symfony/form 5.1: Not configuring the "rounding_mode" option is deprecated. It will default to Symfony\Component\Form\Extension\Core\DataTransformer\PercentToLocalizedStringTransformer::ROUND_HALF_UP in Symfony 6.0.');
42+
$this->expectDeprecation('Since symfony/form 5.1: Not configuring the "rounding_mode" option is deprecated. It will default to "Symfony\Component\Form\Extension\Core\DataTransformer\PercentToLocalizedStringTransformer::ROUND_HALF_UP" in Symfony 6.0.');
4343

4444
$form = $this->factory->create(self::TESTED_TYPE, null, [
4545
'scale' => 2,
@@ -55,7 +55,7 @@ public function testSubmitWithoutRoundingMode()
5555
*/
5656
public function testSubmitWithNullRoundingMode()
5757
{
58-
$this->expectDeprecation('Since symfony/form 5.1: Not configuring the "rounding_mode" option is deprecated. It will default to Symfony\Component\Form\Extension\Core\DataTransformer\PercentToLocalizedStringTransformer::ROUND_HALF_UP in Symfony 6.0.');
58+
$this->expectDeprecation('Since symfony/form 5.1: Not configuring the "rounding_mode" option is deprecated. It will default to "Symfony\Component\Form\Extension\Core\DataTransformer\PercentToLocalizedStringTransformer::ROUND_HALF_UP" in Symfony 6.0.');
5959

6060
$form = $this->factory->create(self::TESTED_TYPE, null, [
6161
'rounding_mode' => null,

0 commit comments

Comments
 (0)
0