Skip to content

Commit d433d46

Browse files
committed
Add typehint
1 parent fdf7247 commit d433d46

File tree

66 files changed

+305
-504
lines changed

Some content is hidden

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

66 files changed

+305
-504
lines changed

spec/Api/AssociationTypeApiSpec.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,12 @@ function it_returns_a_list_of_association_types_with_additional_query_parameters
109109
PageInterface $page
110110
) {
111111
$resourceClient
112-
->getResources(AssociationTypeApi::ASSOCIATION_TYPES_URI, [], null, null, ['foo' => 'bar'])
112+
->getResources(AssociationTypeApi::ASSOCIATION_TYPES_URI, [], 10, false, ['foo' => 'bar'])
113113
->willReturn([]);
114114

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

117-
$this->listPerPage(null, null, ['foo' => 'bar'])->shouldReturn($page);
117+
$this->listPerPage(10, false, ['foo' => 'bar'])->shouldReturn($page);
118118
}
119119

120120
function it_creates_an_association_type($resourceClient)

spec/Api/AttributeApiSpec.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,12 @@ function it_returns_a_cursor_on_the_list_of_attributes(
101101
function it_returns_a_list_of_attributes_with_additional_query_parameters($resourceClient, $pageFactory, PageInterface $page)
102102
{
103103
$resourceClient
104-
->getResources(AttributeApi::ATTRIBUTES_URI, [], null, null, ['foo' => 'bar'])
104+
->getResources(AttributeApi::ATTRIBUTES_URI, [], 10, false, ['foo' => 'bar'])
105105
->willReturn([]);
106106

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

109-
$this->listPerPage(null, null, ['foo' => 'bar'])->shouldReturn($page);
109+
$this->listPerPage(10, false, ['foo' => 'bar'])->shouldReturn($page);
110110
}
111111

112112
function it_creates_an_attribute($resourceClient)

spec/Api/AttributeGroupApiSpec.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,12 @@ function it_returns_a_cursor_on_the_list_of_attribute_groups(
101101
function it_returns_a_list_of_attribute_groups_with_additional_query_parameters($resourceClient, $pageFactory, PageInterface $page)
102102
{
103103
$resourceClient
104-
->getResources(AttributeGroupApi::ATTRIBUTE_GROUPS_URI, [], null, null, ['foo' => 'bar'])
104+
->getResources(AttributeGroupApi::ATTRIBUTE_GROUPS_URI, [], 10, false, ['foo' => 'bar'])
105105
->willReturn([]);
106106

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

109-
$this->listPerPage(null, null, ['foo' => 'bar'])->shouldReturn($page);
109+
$this->listPerPage(10, false, ['foo' => 'bar'])->shouldReturn($page);
110110
}
111111

112112
function it_creates_an_attribute_group($resourceClient)

spec/Api/AttributeOptionApiSpec.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,12 @@ function it_returns_a_list_of_attribute_options_with_additional_query_parameters
101101
$attributeCode = 'foo_1';
102102

103103
$resourceClient
104-
->getResources(sprintf(AttributeOptionApi::ATTRIBUTE_OPTIONS_URI, $attributeCode), [], null, null, ['foo' => 'bar'])
104+
->getResources(sprintf(AttributeOptionApi::ATTRIBUTE_OPTIONS_URI, $attributeCode), [], 10, false, ['foo' => 'bar'])
105105
->willReturn([]);
106106

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

109-
$this->listPerPage($attributeCode, null, null, ['foo' => 'bar'])->shouldReturn($page);
109+
$this->listPerPage($attributeCode, 10, false, ['foo' => 'bar'])->shouldReturn($page);
110110
}
111111

112112
function it_creates_an_attribute_option($resourceClient)

spec/Api/CategoryApiSpec.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,12 @@ function it_returns_a_cursor_on_the_list_of_categories(
9999
function it_returns_a_list_of_categories_with_additional_query_parameters($resourceClient, $pageFactory, PageInterface $page)
100100
{
101101
$resourceClient
102-
->getResources(CategoryApi::CATEGORIES_URI, [], null, null, ['foo' => 'bar'])
102+
->getResources(CategoryApi::CATEGORIES_URI, [], 10, false, ['foo' => 'bar'])
103103
->willReturn([]);
104104

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

107-
$this->listPerPage(null, null, ['foo' => 'bar'])->shouldReturn($page);
107+
$this->listPerPage(10, false, ['foo' => 'bar'])->shouldReturn($page);
108108
}
109109

110110
function it_creates_a_category($resourceClient)

spec/Api/ChannelApiSpec.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,12 @@ function it_returns_a_cursor_on_the_list_of_channels(
100100
function it_returns_a_list_of_channels_with_additional_query_parameters($resourceClient, $pageFactory, PageInterface $page)
101101
{
102102
$resourceClient
103-
->getResources(ChannelApi::CHANNELS_URI, [], null, null, ['foo' => 'bar'])
103+
->getResources(ChannelApi::CHANNELS_URI, [], 10, false, ['foo' => 'bar'])
104104
->willReturn([]);
105105

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

108-
$this->listPerPage(null, null, ['foo' => 'bar'])->shouldReturn($page);
108+
$this->listPerPage(10, false, ['foo' => 'bar'])->shouldReturn($page);
109109
}
110110

111111
function it_creates_a_channel($resourceClient)

spec/Api/CurrencyApiSpec.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@ function it_returns_a_cursor_on_the_list_of_currencies(
8989
function it_returns_a_list_of_currencies_with_additional_query_parameters($resourceClient, $pageFactory, PageInterface $page)
9090
{
9191
$resourceClient
92-
->getResources(CurrencyApi::CURRENCIES_URI, [], null, null, ['foo' => 'bar'])
92+
->getResources(CurrencyApi::CURRENCIES_URI, [], 10, false, ['foo' => 'bar'])
9393
->willReturn([]);
9494

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

97-
$this->listPerPage(null, null, ['foo' => 'bar'])->shouldReturn($page);
97+
$this->listPerPage(10, false, ['foo' => 'bar'])->shouldReturn($page);
9898
}
9999
}

spec/Api/FamilyApiSpec.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,12 @@ function it_returns_a_cursor_on_the_list_of_families(
101101
function it_returns_a_list_of_families_with_additional_query_parameters($resourceClient, $pageFactory, PageInterface $page)
102102
{
103103
$resourceClient
104-
->getResources(FamilyApi::FAMILIES_URI, [], null, null, ['foo' => 'bar'])
104+
->getResources(FamilyApi::FAMILIES_URI, [], 10, false, ['foo' => 'bar'])
105105
->willReturn([]);
106106

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

109-
$this->listPerPage(null, null, ['foo' => 'bar'])->shouldReturn($page);
109+
$this->listPerPage(10, false, ['foo' => 'bar'])->shouldReturn($page);
110110
}
111111

112112
function it_creates_a_family($resourceClient)

spec/Api/LocaleApiSpec.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,11 @@ function it_returns_a_cursor_on_the_list_of_locales(
8787
function it_returns_a_list_of_locales_with_additional_query_parameters($resourceClient, $pageFactory, PageInterface $page)
8888
{
8989
$resourceClient
90-
->getResources(LocaleApi::LOCALES_URI, [], null, null, ['foo' => 'bar'])
90+
->getResources(LocaleApi::LOCALES_URI, [], 10, false, ['foo' => 'bar'])
9191
->willReturn([]);
9292

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

95-
$this->listPerPage(null, null, ['foo' => 'bar'])->shouldReturn($page);
95+
$this->listPerPage(10, false, ['foo' => 'bar'])->shouldReturn($page);
9696
}
9797
}

spec/Api/MeasureFamilyApiSpec.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,11 @@ function it_returns_a_list_of_measure_families_with_additional_query_parameters(
107107
PageInterface $page
108108
) {
109109
$resourceClient
110-
->getResources(MeasureFamilyApi::MEASURE_FAMILIES_URI, [], null, null, ['foo' => 'bar'])
110+
->getResources(MeasureFamilyApi::MEASURE_FAMILIES_URI, [], 10, false, ['foo' => 'bar'])
111111
->willReturn([]);
112112

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

115-
$this->listPerPage(null, null, ['foo' => 'bar'])->shouldReturn($page);
115+
$this->listPerPage(10, false, ['foo' => 'bar'])->shouldReturn($page);
116116
}
117117
}

0 commit comments

Comments
 (0)