diff --git a/tests/Driver/Oracle/Stubs/Customer.php b/tests/Driver/Oracle/Stubs/Customer.php index 8e72ac8a5..e0d5916f5 100644 --- a/tests/Driver/Oracle/Stubs/Customer.php +++ b/tests/Driver/Oracle/Stubs/Customer.php @@ -14,12 +14,10 @@ * @property string $email * @property string $address * @property int $status - * - * @method CustomerQuery findBySql($sql, $params = []) static. */ final class Customer extends \Yiisoft\ActiveRecord\Tests\Stubs\ActiveRecord\Customer { - public function getOrders(): ActiveQuery + public function getOrdersQuery(): ActiveQuery { return $this->hasMany(Order::class, ['customer_id' => 'id'])->orderBy('{{customer}}.[[id]]'); } diff --git a/tests/Driver/Oracle/Stubs/Order.php b/tests/Driver/Oracle/Stubs/Order.php index 9992fbbbf..d0e67c16c 100644 --- a/tests/Driver/Oracle/Stubs/Order.php +++ b/tests/Driver/Oracle/Stubs/Order.php @@ -16,7 +16,7 @@ */ final class Order extends \Yiisoft\ActiveRecord\Tests\Stubs\ActiveRecord\Order { - public function getCustomer(): ActiveQuery + public function getCustomerQuery(): ActiveQuery { return $this->hasOne(Customer::class, ['id' => 'customer_id']); } diff --git a/tests/Driver/Pgsql/ActiveRecordTest.php b/tests/Driver/Pgsql/ActiveRecordTest.php index 3a91cbd76..116d76532 100644 --- a/tests/Driver/Pgsql/ActiveRecordTest.php +++ b/tests/Driver/Pgsql/ActiveRecordTest.php @@ -110,7 +110,7 @@ public function testBooleanValues(): void $this->checkFixture($this->db, 'bool_values'); $command = $this->db->createCommand(); - $command->batchInsert('bool_values', ['bool_col'], [[true], [false]])->execute(); + $command->insertBatch('bool_values', [[true], [false]], ['bool_col'])->execute(); $boolARQuery = new ActiveQuery(BoolAR::class, $this->db); $this->assertTrue($boolARQuery->where(['bool_col' => true])->onePopulate()->bool_col);