function it_adds_order_by() { $this->orderBy('o.foo', 'asc'); $this->addOrderBy('o.bar', 'desc'); $this->getOrderBys()->shouldReturn(['o.foo' => 'asc', 'o.bar' => 'desc']); }