From ed0adf16945dce812ac586c8dced6b6330f7382a Mon Sep 17 00:00:00 2001 From: Tigrov Date: Thu, 4 Jul 2024 10:13:21 +0700 Subject: [PATCH] Fix test --- tests/Driver/Pgsql/ActiveRecordTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Driver/Pgsql/ActiveRecordTest.php b/tests/Driver/Pgsql/ActiveRecordTest.php index aee4ce7d6..2ac1a5e95 100644 --- a/tests/Driver/Pgsql/ActiveRecordTest.php +++ b/tests/Driver/Pgsql/ActiveRecordTest.php @@ -441,9 +441,9 @@ public function testToArrayWithClosure(): void public function testRelationViaArray() { - $this->checkFixture($this->db, 'promotion'); + $this->checkFixture($this->db(), 'promotion'); - $promotionQuery = new ActiveQuery(Promotion::class, $this->db); + $promotionQuery = new ActiveQuery(Promotion::class); /** @var Promotion[] $promotions */ $promotions = $promotionQuery->with('items')->all();