Skip to content

Commit 11c590f

Browse files
authored
Merge pull request #247 from akeneo/API-1880-php-client-increase-default-pagination-limit-to-100-maximum
feat(API-1880): Increase default pagination limit to 100
2 parents 03788e7 + dcb7de0 commit 11c590f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+65
-65
lines changed

spec/Api/AppCatalog/AppCatalogApiSpec.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function it_returns_a_list_of_catalogs_with_default_parameters(
5151
->getResources(
5252
AppCatalogApi::APP_CATALOGS_URI,
5353
[],
54-
10,
54+
100,
5555
false,
5656
[]
5757
)

spec/Api/AppCatalog/AppCatalogProductApiSpec.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function it_returns_a_list_of_catalog_product_uuids_with_default_parameters(
4545
->getResources(
4646
AppCatalogProductApi::APP_CATALOG_PRODUCT_URI,
4747
[$aCatalogId],
48-
10,
48+
100,
4949
false,
5050
[]
5151
)

spec/Api/AssetApiSpec.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function it_returns_a_list_of_assets_with_default_parameters(
5151
PageInterface $page
5252
) {
5353
$resourceClient
54-
->getResources(AssetApi::ASSETS_URI, [], 10, false, [])
54+
->getResources(AssetApi::ASSETS_URI, [], 100, false, [])
5555
->willReturn([]);
5656
$pageFactory->createPage([])->willReturn($page);
5757
$this->listPerPage()->shouldReturn($page);

spec/Api/AssetCategoryApiSpec.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function it_returns_a_list_of_asset_categories_with_default_parameters(
5454
PageInterface $page
5555
) {
5656
$resourceClient
57-
->getResources(AssetCategoryApi::ASSET_CATEGORIES_URI, [], 10, false, [])
57+
->getResources(AssetCategoryApi::ASSET_CATEGORIES_URI, [], 100, false, [])
5858
->willReturn([]);
5959

6060
$pageFactory->createPage([])->willReturn($page);

spec/Api/AssetTagApiSpec.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function it_returns_a_list_of_asset_tags_with_default_parameters(
4949
PageInterface $page
5050
) {
5151
$resourceClient
52-
->getResources(AssetTagApi::ASSET_TAGS_URI, [], 10, false, [])
52+
->getResources(AssetTagApi::ASSET_TAGS_URI, [], 100, false, [])
5353
->willReturn([]);
5454

5555
$pageFactory->createPage([])->willReturn($page);

spec/Api/AssociationTypeApiSpec.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function it_returns_a_list_of_association_types_with_default_parameters(
6363
PageInterface $page
6464
) {
6565
$resourceClient
66-
->getResources(AssociationTypeApi::ASSOCIATION_TYPES_URI, [], 10, false, [])
66+
->getResources(AssociationTypeApi::ASSOCIATION_TYPES_URI, [], 100, false, [])
6767
->willReturn([]);
6868

6969
$pageFactory->createPage([])->willReturn($page);

spec/Api/AttributeApiSpec.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function it_returns_an_attribute($resourceClient)
6161
function it_returns_a_list_of_attributes_with_default_parameters($resourceClient, $pageFactory, PageInterface $page)
6262
{
6363
$resourceClient
64-
->getResources(AttributeApi::ATTRIBUTES_URI, [], 10, false, [])
64+
->getResources(AttributeApi::ATTRIBUTES_URI, [], 100, false, [])
6565
->willReturn([]);
6666

6767
$pageFactory->createPage([])->willReturn($page);

spec/Api/AttributeGroupApiSpec.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function it_returns_an_attribute_group($resourceClient)
6161
function it_returns_a_list_of_attribute_groups_with_default_parameters($resourceClient, $pageFactory, PageInterface $page)
6262
{
6363
$resourceClient
64-
->getResources(AttributeGroupApi::ATTRIBUTE_GROUPS_URI, [], 10, false, [])
64+
->getResources(AttributeGroupApi::ATTRIBUTE_GROUPS_URI, [], 100, false, [])
6565
->willReturn([]);
6666

6767
$pageFactory->createPage([])->willReturn($page);

spec/Api/AttributeOptionApiSpec.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function it_returns_a_list_of_attribute_options_with_default_parameters($resourc
5555
$attributeCode = 'foo_1';
5656

5757
$resourceClient
58-
->getResources(sprintf(AttributeOptionApi::ATTRIBUTE_OPTIONS_URI, $attributeCode), [], 10, false, [])
58+
->getResources(sprintf(AttributeOptionApi::ATTRIBUTE_OPTIONS_URI, $attributeCode), [], 100, false, [])
5959
->willReturn([]);
6060

6161
$pageFactory->createPage([])->willReturn($page);

spec/Api/CategoryApiSpec.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function it_returns_a_category($resourceClient)
5959
function it_returns_a_list_of_categories_with_default_parameters($resourceClient, $pageFactory, PageInterface $page)
6060
{
6161
$resourceClient
62-
->getResources(CategoryApi::CATEGORIES_URI, [], 10, false, [])
62+
->getResources(CategoryApi::CATEGORIES_URI, [], 100, false, [])
6363
->willReturn([]);
6464

6565
$pageFactory->createPage([])->willReturn($page);

0 commit comments

Comments
 (0)