/** * @param $query * @param int $numericLimit * @return mixed|string */ public function getLimitedQuery($query, $numericLimit = 0) { $query = $this->querySyntax->getLimitedQuery($query, $numericLimit); return $query; }
/** * @param $query * @dataProvider validQueryProvider */ public function testHasLimitFalse($query) { $limitServiceMock = $this->prophesize(ClassNames::LIMITS_SERVICE); /** @var LimitsService $limitService */ $limitService = $limitServiceMock->reveal(); $querySyntaxService = new QuerySyntaxService($limitService); $this->assertFalse($querySyntaxService->hasLimit($query)); }