-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement the interface ArrayableInterface for BaseActiveRecord
- Loading branch information
1 parent
424f841
commit b64dde5
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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' => [ | ||
|
@@ -416,8 +416,8 @@ public function testToArrayForArrayable(): void | |
'items' => [ | ||
[ | ||
'id' => 3, | ||
'email' => '[email protected]', | ||
'name' => 'user3', | ||
'email' => '[email protected]', | ||
'status' => 'inactive', | ||
], | ||
] | ||
|
@@ -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', | ||
]), | ||
); | ||
} | ||
|