/** * @test */ public function groupByQuotesIdentifierAndDelegatesToConcreteQueryBuilder() { $this->connection->quoteIdentifiers(['aField', 'anotherField'])->shouldBeCalled()->willReturnArgument(0); $this->concreteQueryBuilder->groupBy('aField', 'anotherField')->shouldBeCalled()->willReturn($this->subject); $this->subject->groupBy('aField', 'anotherField'); }