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 044755d commit fa7c4cb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions tests/ActiveRecordTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -784,21 +784,21 @@ public function testToArrayForArrayable(): void
$this->assertSame(
[
'id' => 1,
'name' => 'user1',
'email' => '[email protected]',
'name' => 'user1',
'address' => 'address1',
'status' => 'active',
'item' => [
'id' => 2,
'name' => 'user2',
'email' => '[email protected]',
'name' => 'user2',
'status' => 'active',
],
'items' => [
[
'id' => 3,
'name' => 'user3',
'email' => '[email protected]',
'name' => 'user3',
'status' => 'inactive',
],
],
Expand Down
6 changes: 3 additions & 3 deletions tests/Driver/Oracle/ActiveRecordTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,21 +187,21 @@ public function testToArrayForArrayable(): void
$this->assertSame(
[
'id' => 1,
'name' => 'user1',
'email' => '[email protected]',
'name' => 'user1',
'address' => 'address1',
'status' => 'active',
'item' => [
'id' => 2,
'name' => 'user2',
'email' => '[email protected]',
'name' => 'user2',
'status' => 'active',
],
'items' => [
[
'id' => 3,
'name' => 'user3',
'email' => '[email protected]',
'name' => 'user3',
'status' => 'inactive',
],
],
Expand Down
6 changes: 3 additions & 3 deletions tests/Driver/Pgsql/ActiveRecordTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -402,21 +402,21 @@ public function testToArrayForArrayable(): void
$this->assertSame(
[
'id' => 1,
'name' => 'user1',
'email' => '[email protected]',
'name' => 'user1',
'address' => 'address1',
'status' => 'active',
'item' => [
'id' => 2,
'name' => 'user2',
'email' => '[email protected]',
'name' => 'user2',
'status' => 'active',
],
'items' => [
[
'id' => 3,
'name' => 'user3',
'email' => '[email protected]',
'name' => 'user3',
'status' => 'inactive',
],
],
Expand Down

0 comments on commit fa7c4cb

Please sign in to comment.