Skip to content

Commit

Permalink
Modify test - ensure commit is marked as Verified 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Pixelshaped committed Jun 5, 2024
1 parent 77a692a commit 77fe90e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/FlatMapperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 77fe90e

Please sign in to comment.