diff --git a/tests/Driver/Pgsql/ArrayableTraitTest.php b/tests/Driver/Pgsql/ArrayableTraitTest.php index b7397d07d..b2ebfbde2 100644 --- a/tests/Driver/Pgsql/ArrayableTraitTest.php +++ b/tests/Driver/Pgsql/ArrayableTraitTest.php @@ -4,9 +4,6 @@ namespace Yiisoft\ActiveRecord\Tests\Driver\Pgsql; -use Yiisoft\ActiveRecord\ActiveQuery; -use Yiisoft\ActiveRecord\Tests\Stubs\ActiveRecord\Customer; -use Yiisoft\ActiveRecord\Tests\Stubs\ActiveRecord\CustomerClosureField; use Yiisoft\ActiveRecord\Tests\Support\PgsqlHelper; use Yiisoft\Db\Connection\ConnectionInterface; @@ -16,46 +13,4 @@ protected function createConnection(): ConnectionInterface { return (new PgsqlHelper())->createConnection(); } - - public function testToArray(): void - { - $this->checkFixture($this->db(), 'customer', true); - - $customerQuery = new ActiveQuery(Customer::class); - $customer = $customerQuery->findOne(1); - - $this->assertSame( - [ - 'id' => 1, - 'email' => 'user1@example.com', - 'name' => 'user1', - 'address' => 'address1', - 'status' => 1, - 'bool_status' => true, - 'profile_id' => 1, - ], - $customer->toArray(), - ); - } - - public function testToArrayWithClosure(): void - { - $this->checkFixture($this->db(), 'customer', true); - - $customerQuery = new ActiveQuery(CustomerClosureField::class); - $customer = $customerQuery->findOne(1); - - $this->assertSame( - [ - 'id' => 1, - 'email' => 'user1@example.com', - 'name' => 'user1', - 'address' => 'address1', - 'status' => 'active', - 'bool_status' => true, - 'profile_id' => 1, - ], - $customer->toArray(), - ); - } }