/** * @test */ public function orderByQuotesIdentifierAndDelegatesToConcreteQueryBuilder() { $this->connection->quoteIdentifier('aField')->shouldBeCalled()->willReturnArgument(0); $this->concreteQueryBuilder->orderBy('aField', null)->shouldBeCalled()->willReturn($this->subject); $this->subject->orderBy('aField'); }