Skip to content

Commit

Permalink
Fixed return of incomplete fixture insert row
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelgfeller committed Apr 10, 2024
1 parent e832318 commit 77e6458
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Trait/FixtureTestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ protected function insertFixture(string $fixture, array ...$attributes): array
$row = $this->addCustomAttributesToRow($attributesForOneRow, $fixture->records[0]);
// Insert fixture and get id
$id = ['id' => (int)$this->insertFixtureRow($fixture->table, $row)];
// Make 'id' the first element in the row array
$row = array_merge($id, $attributesForOneRow);
// Combine 'id' array and the row to make the id the first element in the row
$row = $id + $row;
$recordsCollection[] = $row;
}

Expand Down

0 comments on commit 77e6458

Please sign in to comment.