From fa7c4cb1144c5d2190ddeb37d4c773bc4921312b Mon Sep 17 00:00:00 2001 From: niqingyang Date: Sun, 10 Dec 2023 02:52:21 +0800 Subject: [PATCH] implement the interface ArrayableInterface for BaseActiveRecord --- tests/ActiveRecordTest.php | 6 +++--- tests/Driver/Oracle/ActiveRecordTest.php | 6 +++--- tests/Driver/Pgsql/ActiveRecordTest.php | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/ActiveRecordTest.php b/tests/ActiveRecordTest.php index 779935782..7d232d6cf 100644 --- a/tests/ActiveRecordTest.php +++ b/tests/ActiveRecordTest.php @@ -784,21 +784,21 @@ public function testToArrayForArrayable(): void $this->assertSame( [ 'id' => 1, - 'name' => 'user1', 'email' => 'user1@example.com', + 'name' => 'user1', 'address' => 'address1', 'status' => 'active', 'item' => [ 'id' => 2, - 'name' => 'user2', 'email' => 'user2@example.com', + 'name' => 'user2', 'status' => 'active', ], 'items' => [ [ 'id' => 3, - 'name' => 'user3', 'email' => 'user3@example.com', + 'name' => 'user3', 'status' => 'inactive', ], ], diff --git a/tests/Driver/Oracle/ActiveRecordTest.php b/tests/Driver/Oracle/ActiveRecordTest.php index 250212575..d91b25b02 100644 --- a/tests/Driver/Oracle/ActiveRecordTest.php +++ b/tests/Driver/Oracle/ActiveRecordTest.php @@ -187,21 +187,21 @@ public function testToArrayForArrayable(): void $this->assertSame( [ 'id' => 1, - 'name' => 'user1', 'email' => 'user1@example.com', + 'name' => 'user1', 'address' => 'address1', 'status' => 'active', 'item' => [ 'id' => 2, - 'name' => 'user2', 'email' => 'user2@example.com', + 'name' => 'user2', 'status' => 'active', ], 'items' => [ [ 'id' => 3, - 'name' => 'user3', 'email' => 'user3@example.com', + 'name' => 'user3', 'status' => 'inactive', ], ], diff --git a/tests/Driver/Pgsql/ActiveRecordTest.php b/tests/Driver/Pgsql/ActiveRecordTest.php index 44a7999e6..51a25c23e 100644 --- a/tests/Driver/Pgsql/ActiveRecordTest.php +++ b/tests/Driver/Pgsql/ActiveRecordTest.php @@ -402,21 +402,21 @@ public function testToArrayForArrayable(): void $this->assertSame( [ 'id' => 1, - 'name' => 'user1', 'email' => 'user1@example.com', + 'name' => 'user1', 'address' => 'address1', 'status' => 'active', 'item' => [ 'id' => 2, - 'name' => 'user2', 'email' => 'user2@example.com', + 'name' => 'user2', 'status' => 'active', ], 'items' => [ [ 'id' => 3, - 'name' => 'user3', 'email' => 'user3@example.com', + 'name' => 'user3', 'status' => 'inactive', ], ],