/** * @test */ public function testProcess() { $this->doctrineRegistry->expects($this->any())->method('getManager')->will($this->returnValue($this->manager)); $this->manager->expects($this->once())->method('createQueryBuilder')->will($this->returnValue($this->queryBuilder))->with($this->equalTo('a')); $this->grid->expects($this->once())->method('getParameters')->will($this->returnValue($this->parameterBag)); $this->parameterBag->expects($this->once())->method('get')->will($this->returnValue(1)); $this->grid->expects($this->once())->method('setDatasource'); $this->combinedAuditDatasource->process($this->grid, []); }