10000 improve an assertion · symfony/symfony@a16b56d · GitHub
[go: up one dir, main page]

Skip to content

Commit a16b56d

Browse files
committed
improve an assertion
1 parent aa54aff commit a16b56d

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
Original file line numberDiff line numbe 8000 rDiff 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