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 b64dde5 commit 0f680fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/ActiveRecordTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -785,8 +785,8 @@ public function testToArrayForArrayable(): void
$this->assertSame(
[
'id' => 1,
'email' => '[email protected]',
'name' => 'user1',
'email' => '[email protected]',
'address' => 'address1',
'status' => 'active',
'item' => [
Expand All @@ -798,8 +798,8 @@ public function testToArrayForArrayable(): void
'items' => [
[
'id' => 3,
'email' => '[email protected]',
'name' => 'user3',
'email' => '[email protected]',
'status' => 'inactive',
],
]
Expand Down
4 changes: 2 additions & 2 deletions tests/Driver/Oracle/ActiveRecordTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ public function testToArrayForArrayable(): void
$this->assertSame(
[
'id' => 1,
'email' => '[email protected]',
'name' => 'user1',
'email' => '[email protected]',
'address' => 'address1',
'status' => 'active',
'item' => [
Expand All @@ -201,8 +201,8 @@ public function testToArrayForArrayable(): void
'items' => [
[
'id' => 3,
'email' => '[email protected]',
'name' => 'user3',
'email' => '[email protected]',
'status' => 'inactive',
],
]
Expand Down

0 comments on commit 0f680fe

Please sign in to comment.