Skip to content

Commit

Permalink
Update tests/Doctrine/Tests/ORM/Functional/EnumTest.php
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander M. Turek <[email protected]>
  • Loading branch information
michnovka and derrabus authored Apr 15, 2022
1 parent 27115ae commit 06d88f7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/Doctrine/Tests/ORM/Functional/EnumTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,7 @@ public function testEnumArrayHydration(): void
->getQuery()
->getResult();

$this->assertIsArray($result[0]['supportedUnits']);
$this->assertContains(Unit::Gram, $result[0]['supportedUnits']);
$this->assertContains(Unit::Meter, $result[0]['supportedUnits']);
self::assertEqualsCanonicalizing([Unit::Gram, Unit::Meter], $result[0]['supportedUnits']);
}

public function testFindByEnum(): void
Expand Down

0 comments on commit 06d88f7

Please sign in to comment.