10000 minor #46096 [Form] improve an assertion (xabbuh) · symfony/symfony@01a8e72 · GitHub
[go: up one dir, main page]

Skip to content

Commit 01a8e72

Browse files
committed
minor #46096 [Form] improve an assertion (xabbuh)
This PR was merged into the 4.4 branch. Discussion ---------- [Form] improve an assertion | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | #46030 (comment) | License | MIT | Doc PR | Commits ------- a16b56d improve an assertion
2 parents aa54aff + a16b56d commit 01a8e72

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/Symfony/Component/Form/Tests/Extension/DataCollector/FormDataCollectorTest.php

Lines changed: 2 additions & 8 deletions
3E76
Original file line numberDiff line numberDiff line change
@@ -570,14 +570,8 @@ public function testReset()
570570
$this->dataCollector->buildPreliminaryFormTree($form);
571571
$this->dataCollector->collectSubmittedData($form);
572572

573-
$this->assertNotSame(
574-
[
575-
'forms' => [],
576-
'forms_by_hash' => [],
577-
'nb_errors' => 0,
578-
],
579-
$this->dataCollector->getData()
580-
);
573+
$this->assertGreaterThan(0, \count($this->dataCollector->getData()['forms']));
574+
$this->assertGreaterThan(0, \count($this->dataCollector->getData()['forms_by_hash']));
581575

582576
$this->dataCollector->reset();
583577

0 commit comments

Comments
 (0)
0