function testFindFirstWithSortParams() { $object1 = $this->creator->createOneTableObject(); $object2 = $this->creator->createOneTableObject(); $found = lmbActiveRecord::findFirst('TestOneTableObject', array('sort' => array('id' => 'DESC'))); $this->assertEqual($found->get('id'), $object2->getId()); //testing convenient alias $found = TestOneTableObject::findFirst(array('sort' => array('id' => 'DESC'))); $this->assertEqual($found->get('id'), $object2->getId()); }