Skip to content

Commit e1671d3

Browse files
committed
Fix CS: use assertCount instead of assertSame with count()
1 parent e831276 commit e1671d3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/Fixture/CwaFixtureBuilderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1950,7 +1950,7 @@ public function test_double_flush_does_not_duplicate_entity_persists(): void
19501950

19511951
$builder->flush(); // second flush must not persist any entity again
19521952

1953-
$this->assertSame($firstCount, \count($persisted), 'Second flush must not add duplicate persists');
1953+
$this->assertCount($firstCount, $persisted, 'Second flush must not add duplicate persists');
19541954

19551955
// Each entity object must appear at most once in $persisted
19561956
$entities = array_filter($persisted, static fn ($e) => $e instanceof Layout || $e instanceof Page || $e instanceof ComponentGroup);

0 commit comments

Comments
 (0)