diff --git a/tests/FlatMapperTest.php b/tests/FlatMapperTest.php index a48ec0e..56b288c 100644 --- a/tests/FlatMapperTest.php +++ b/tests/FlatMapperTest.php @@ -100,15 +100,15 @@ public function testMapValidColumnArrayDTO(): void ['object1_id' => 1, 'object1_name' => 'Root 1', 'object2_id' => 3], ['object1_id' => 2, 'object1_name' => 'Root 2', 'object2_id' => 1], ['object1_id' => 2, 'object1_name' => 'Root 2', 'object2_id' => 4], - ['object1_id' => 5, 'object1_name' => 'Root 5', 'object2_id' => null], + ['object1_id' => 7, 'object1_name' => 'Root 7', 'object2_id' => null], ]; $flatMapperResults = ((new FlatMapper())->map(ColumnArrayDTO::class, $results)); $rootDto1 = new ColumnArrayDTO(1, "Root 1", [1, 2, 3]); $rootDto2 = new ColumnArrayDTO(2, "Root 2", [1, 4]); - $rootDto5 = new ColumnArrayDTO(5, "Root 5", []); - $handmadeResult = [1 => $rootDto1, 2 => $rootDto2, 5 => $rootDto5]; + $rootDto7 = new ColumnArrayDTO(7, "Root 7", []); + $handmadeResult = [1 => $rootDto1, 2 => $rootDto2, 7 => $rootDto7]; $this->assertSame( var_export($flatMapperResults, true),