Skip to content

Commit

Permalink
Set max attributes & options to 20
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbager committed Nov 17, 2019
1 parent 29e3091 commit 101cf0b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion spec/Finder/ProductAttributesFinderSpec.php
Expand Up @@ -53,7 +53,7 @@ function it_finds_by_taxon(

$attributesByTaxonQueryBuilder->buildQuery(['taxons' => 'book'])->willReturn($query);

$attributesFinder->find($query, 9999)->willReturn([]);
$attributesFinder->find($query, 20)->willReturn([]);

$this->findByTaxon($taxon)->shouldBeEqualTo([]);
}
Expand Down
2 changes: 1 addition & 1 deletion spec/Finder/ProductOptionsFinderSpec.php
Expand Up @@ -53,7 +53,7 @@ function it_finds_by_taxon(

$productOptionsByTaxonQueryBuilder->buildQuery(['taxons' => 'book'])->willReturn($query);

$optionsFinder->find($query, 9999)->willReturn([]);
$optionsFinder->find($query, 20)->willReturn([]);

$this->findByTaxon($taxon)->shouldBeEqualTo([]);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Finder/ProductAttributesFinder.php
Expand Up @@ -44,6 +44,6 @@ public function findByTaxon(TaxonInterface $taxon): ?array

$query = $this->attributesByTaxonQueryBuilder->buildQuery($data);

return $this->attributesFinder->find($query, 9999);
return $this->attributesFinder->find($query, 20);
}
}
2 changes: 1 addition & 1 deletion src/Finder/ProductOptionsFinder.php
Expand Up @@ -44,6 +44,6 @@ public function findByTaxon(TaxonInterface $taxon): ?array

$query = $this->productOptionsByTaxonQueryBuilder->buildQuery($data);

return $this->optionsFinder->find($query, 9999);
return $this->optionsFinder->find($query, 20);
}
}

0 comments on commit 101cf0b

Please sign in to comment.