public function testSortWithArrayOfFieldNameAndOrderPairs() { $qb = $this->getTestQueryBuilder()->sort(['foo' => 1, 'bar' => -1]); $this->assertEquals(['foo' => 1, 'bar' => -1], $qb->debug('sort')); }