Commit 21bc2956 by Qiang Xue

Fixed test break.

parent 293e8070
......@@ -405,7 +405,9 @@ class ActiveRecordTest extends DatabaseTestCase
// https://github.com/yiisoft/yii2/issues/2880
$query = Order::find(1);
$customer = $query->getCustomer()->joinWith('orders')->one();
$customer = $query->getCustomer()->joinWith([
'orders' => function ($q) { $q->orderBy([]); }
])->one();
$this->assertEquals(1, $customer->id);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment