public function testOrderAscendingIsDefault() { $dynamicOperand = $this->getMock('PHPCR\\Query\\QOM\\DynamicOperandInterface', array(), array()); $this->qf->expects($this->once())->method('ascending')->with($this->equalTo($dynamicOperand)); $qb = new QueryBuilder($this->qf); $qb->addOrderBy($dynamicOperand); }