Skip to content

Commit

Permalink
revert unit test back to original
Browse files Browse the repository at this point in the history
  • Loading branch information
zedmonds96 committed Dec 30, 2024
1 parent bac087d commit 1c5111c
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,6 @@ public function testStreamedQueryJson() {
public function testStreamedLimit() {
$queryLimit = 75;
$pageLimit = 50;
$responseStreamMaxAge = 3600;
$data = json_encode([
"resources" => [
[
Expand All @@ -231,7 +230,7 @@ public function testStreamedLimit() {
"limit" => $queryLimit,
]);
// Set the row limit to 50 even though we're requesting 1000.
$container = $this->getQueryContainer($pageLimit, $responseStreamMaxAge);
$container = $this->getQueryContainer($pageLimit);
$downloadController = QueryDownloadController::create($container);
$request = $this->mockRequest($data);
ob_start([self::class, 'getBuffer']);
Expand Down Expand Up @@ -347,7 +346,7 @@ public function testStreamedBadSchema() {
* @return \MockChain\Chain
* MockChain chain object.
*/
private function getQueryContainer(int $rowLimit, int $responseStreamMaxAge) {
private function getQueryContainer(int $rowLimit) {
$options = (new Options())
->add("dkan.metastore.storage", DataFactory::class)
->add("dkan.datastore.service", DatastoreService::class)
Expand Down Expand Up @@ -414,8 +413,7 @@ private function getQueryContainer(int $rowLimit, int $responseStreamMaxAge) {
->add(Query::class, "getQueryStorageMap", $storageMap)
->add(Query::class, 'getDatastoreService', DatastoreService::class)
->add(DatastoreService::class, 'getDataDictionaryFields', NULL)
->add(ImmutableConfig::class, 'get', $rowLimit)
->add(ImmutableConfig::class, 'get', $responseStreamMaxAge);
->add(ImmutableConfig::class, 'get', $rowLimit);

return $chain->getMock();
}
Expand Down

0 comments on commit 1c5111c

Please sign in to comment.