Skip to content

Commit

Permalink
implement the interface ArrayableInterface for BaseActiveRecord
Browse files Browse the repository at this point in the history
  • Loading branch information
niqingyang committed Dec 9, 2023
1 parent 424f841 commit b64dde5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/Driver/Pgsql/ActiveRecordTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -403,8 +403,8 @@ public function testToArrayForArrayable(): void
$this->assertSame(
[
'id' => 1,
'email' => '[email protected]',
'name' => 'user1',
'email' => '[email protected]',
'address' => 'address1',
'status' => 'active',
'item' => [
Expand All @@ -416,8 +416,8 @@ public function testToArrayForArrayable(): void
'items' => [
[
'id' => 3,
'email' => '[email protected]',
'name' => 'user3',
'email' => '[email protected]',
'status' => 'inactive',
],
]
Expand All @@ -429,11 +429,11 @@ public function testToArrayForArrayable(): void
'address',
'status',
'item.id',
'item.name',
'item.email',
'item.name',
'items.0.id',
'items.0.name',
'items.0.email',
'items.0.name',
]),
);
}
Expand Down

0 comments on commit b64dde5

Please sign in to comment.