Commit 47705f0b by Carsten Brandt

corrected assertations for test on #1310

parent b6b26898
......@@ -428,10 +428,11 @@ trait ActiveRecordTestTrait
$this->assertEquals(3, $order->itemsInOrder1[1]->id);
$this->assertEquals(4, $order->itemsInOrder1[2]->id);
$order = $orders[3];
$order = $orders[2];
$this->assertEquals(3, $order->id);
$this->assertTrue($order->isRelationPopulated('itemsInOrder1'));
$this->assertEquals(0, count($order->itemsInOrder1));
$this->assertEquals(1, count($order->itemsInOrder1));
$this->assertEquals(2, $order->itemsInOrder1[0]->id);
}
// different order in via table
......@@ -455,10 +456,11 @@ trait ActiveRecordTestTrait
$this->assertEquals(3, $order->itemsInOrder2[1]->id);
$this->assertEquals(4, $order->itemsInOrder2[2]->id);
$order = $orders[3];
$order = $orders[2];
$this->assertEquals(3, $order->id);
$this->assertTrue($order->isRelationPopulated('itemsInOrder2'));
$this->assertEquals(0, count($order->itemsInOrder2));
$this->assertEquals(1, count($order->itemsInOrder2));
$this->assertEquals(2, $order->itemsInOrder2[0]->id);
}
public function testLink()
......
......@@ -105,6 +105,15 @@ class ActiveRecordTest extends RedisTestCase
$this->markTestSkipped('Redis does not store/find boolean values correctly.');
}
public function testFindEagerViaRelationPreserveOrder()
{
$this->markTestSkipped('Redis does not support orderBy.');
}
public function testFindEagerViaRelationPreserveOrderB()
{
$this->markTestSkipped('Redis does not support orderBy.');
}
public function testSatisticalFind()
{
......
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