public function testOrderBy() { $result = $this->object->orderBy("abc")->getDbComponent()->getOrderPart(); $compare = " ORDER BY abc"; $this->assertEquals($compare, $result); $result = $this->object->orderBy("abc", 1)->getDbComponent()->getOrderPart(); $compare = " ORDER BY abc DESC"; $this->assertEquals($compare, $result); }