44
55use Akeneo \Pim \ApiClient \AkeneoPimClient ;
66use Akeneo \Pim \ApiClient \AkeneoPimClientInterface ;
7+ use Akeneo \Pim \ApiClient \Api \AssetApiInterface ;
8+ use Akeneo \Pim \ApiClient \Api \AssetCategoryApiInterface ;
9+ use Akeneo \Pim \ApiClient \Api \AssetManager \AssetApiInterface as AssetManagerApiInterface ;
10+ use Akeneo \Pim \ApiClient \Api \AssetManager \AssetAttributeApiInterface ;
11+ use Akeneo \Pim \ApiClient \Api \AssetManager \AssetAttributeOptionApiInterface ;
12+ use Akeneo \Pim \ApiClient \Api \AssetManager \AssetFamilyApiInterface ;
13+ use Akeneo \Pim \ApiClient \Api \AssetManager \AssetMediaFileApiInterface ;
14+ use Akeneo \Pim \ApiClient \Api \AssetReferenceFileApiInterface ;
15+ use Akeneo \Pim \ApiClient \Api \AssetTagApiInterface ;
16+ use Akeneo \Pim \ApiClient \Api \AssetVariationFileApiInterface ;
717use Akeneo \Pim \ApiClient \Api \AssociationTypeApiInterface ;
818use Akeneo \Pim \ApiClient \Api \AttributeApiInterface ;
9- use Akeneo \Pim \ApiClient \Api \AttributeGroupApi ;
19+ use Akeneo \Pim \ApiClient \Api \AttributeGroupApiInterface ;
1020use Akeneo \Pim \ApiClient \Api \AttributeOptionApiInterface ;
1121use Akeneo \Pim \ApiClient \Api \CategoryApiInterface ;
1222use Akeneo \Pim \ApiClient \Api \ChannelApiInterface ;
1828use Akeneo \Pim \ApiClient \Api \MeasurementFamilyApiInterface ;
1929use Akeneo \Pim \ApiClient \Api \MediaFileApiInterface ;
2030use Akeneo \Pim \ApiClient \Api \ProductApiInterface ;
31+ use Akeneo \Pim \ApiClient \Api \ProductDraftApiInterface ;
2132use Akeneo \Pim \ApiClient \Api \ProductModelApiInterface ;
33+ use Akeneo \Pim \ApiClient \Api \ProductModelDraftApiInterface ;
34+ use Akeneo \Pim \ApiClient \Api \PublishedProductApiInterface ;
35+ use Akeneo \Pim \ApiClient \Api \ReferenceEntityApiInterface ;
36+ use Akeneo \Pim \ApiClient \Api \ReferenceEntityAttributeApiInterface ;
37+ use Akeneo \Pim \ApiClient \Api \ReferenceEntityAttributeOptionApiInterface ;
38+ use Akeneo \Pim \ApiClient \Api \ReferenceEntityMediaFileApiInterface ;
39+ use Akeneo \Pim \ApiClient \Api \ReferenceEntityRecordApiInterface ;
2240use Akeneo \Pim \ApiClient \Security \Authentication ;
2341use PhpSpec \ObjectBehavior ;
2442
@@ -30,7 +48,7 @@ function let(
3048 CategoryApiInterface $ categoryApi ,
3149 AttributeApiInterface $ attributeApi ,
3250 AttributeOptionApiInterface $ attributeOptionApi ,
33- AttributeGroupApi $ attributeGroupApi ,
51+ AttributeGroupApiInterface $ attributeGroupApi ,
3452 FamilyApiInterface $ familyApi ,
3553 MediaFileApiInterface $ productMediaFileApi ,
3654 LocaleApiInterface $ localeApi ,
@@ -40,15 +58,34 @@ function let(
4058 MeasurementFamilyApiInterface $ measurementFamilyApi ,
4159 AssociationTypeApiInterface $ associationTypeApi ,
4260 FamilyVariantApiInterface $ familyVariantApi ,
43- ProductModelApiInterface $ productModelApi
61+ ProductModelApiInterface $ productModelApi ,
62+ ProductModelDraftApiInterface $ productModelDraftApi ,
63+ PublishedProductApiInterface $ publishedProductApi ,
64+ ProductDraftApiInterface $ productDraftApi ,
65+ AssetApiInterface $ assetApi ,
66+ AssetCategoryApiInterface $ assetCategoryApi ,
67+ AssetTagApiInterface $ assetTagApi ,
68+ AssetReferenceFileApiInterface $ assetReferenceFileApi ,
69+ AssetVariationFileApiInterface $ assetVariationFileApi ,
70+ ReferenceEntityRecordApiInterface $ referenceEntityRecordApi ,
71+ ReferenceEntityMediaFileApiInterface $ referenceEntityMediaFileApi ,
72+ ReferenceEntityAttributeApiInterface $ referenceEntityAttributeApi ,
73+ ReferenceEntityAttributeOptionApiInterface $ referenceEntityAttributeOptionApi ,
74+ ReferenceEntityApiInterface $ referenceEntityApi ,
75+ AssetManagerApiInterface $ assetManagerApi ,
76+ AssetFamilyApiInterface $ assetFamilyApi ,
77+ AssetAttributeApiInterface $ assetAttributeApi ,
78+ AssetAttributeOptionApiInterface $ assetAttributeOptionApi ,
79+ AssetMediaFileApiInterface $ assetMediaFileApi
4480 ) {
4581 $ this ->beConstructedWith (
4682 $ authentication ,
4783 $ productApi ,
4884 $ categoryApi ,
4985 $ attributeApi ,
5086 $ attributeOptionApi ,
51- $ attributeGroupApi , $ familyApi ,
87+ $ attributeGroupApi ,
88+ $ familyApi ,
5289 $ productMediaFileApi ,
5390 $ localeApi ,
5491 $ channelApi ,
@@ -57,7 +94,25 @@ function let(
5794 $ measurementFamilyApi ,
5895 $ associationTypeApi ,
5996 $ familyVariantApi ,
60- $ productModelApi
97+ $ productModelApi ,
98+ $ productModelDraftApi ,
99+ $ publishedProductApi ,
100+ $ productDraftApi ,
101+ $ assetApi ,
102+ $ assetCategoryApi ,
103+ $ assetTagApi ,
104+ $ assetReferenceFileApi ,
105+ $ assetVariationFileApi ,
106+ $ referenceEntityRecordApi ,
107+ $ referenceEntityMediaFileApi ,
108+ $ referenceEntityAttributeApi ,
109+ $ referenceEntityAttributeOptionApi ,
110+ $ referenceEntityApi ,
111+ $ assetManagerApi ,
112+ $ assetFamilyApi ,
113+ $ assetAttributeApi ,
114+ $ assetAttributeOptionApi ,
115+ $ assetMediaFileApi
61116 );
62117 }
63118
@@ -150,4 +205,84 @@ function it_gets_product_model_api($productModelApi)
150205 {
151206 $ this ->getProductModelApi ()->shouldReturn ($ productModelApi );
152207 }
208+
209+ function it_gets_published_product_api ($ publishedProductApi )
210+ {
211+ $ this ->getPublishedProductApi ()->shouldReturn ($ publishedProductApi );
212+ }
213+
214+ function it_gets_draft_product_api ($ productDraftApi )
215+ {
216+ $ this ->getProductDraftApi ()->shouldReturn ($ productDraftApi );
217+ }
218+
219+ function it_gets_draft_product_model_api ($ productModelDraftApi )
220+ {
221+ $ this ->getProductModelDraftApi ()->shouldReturn ($ productModelDraftApi );
222+ }
223+
224+ function it_gets_asset_api ($ assetApi )
225+ {
226+ $ this ->getAssetApi ()->shouldReturn ($ assetApi );
227+ }
228+
229+ function it_gets_asset_category_api ($ assetCategoryApi )
230+ {
231+ $ this ->getAssetCategoryApi ()->shouldReturn ($ assetCategoryApi );
232+ }
233+
234+ function it_gets_asset_tags_api ($ assetTagApi )
235+ {
236+ $ this ->getAssetTagApi ()->shouldReturn ($ assetTagApi );
237+ }
238+
239+ function it_gets_asset_reference_file_api ($ assetReferenceFileApi )
240+ {
241+ $ this ->getAssetReferenceFileApi ()->shouldReturn ($ assetReferenceFileApi );
242+ }
243+
244+ function it_gets_reference_entity_record_api ($ referenceEntityRecordApi )
245+ {
246+ $ this ->getReferenceEntityRecordApi ()->shouldReturn ($ referenceEntityRecordApi );
247+ }
248+
249+ function it_gets_reference_entity_media_file_api ($ referenceEntityMediaFileApi )
250+ {
251+ $ this ->getReferenceEntityMediaFileApi ()->shouldReturn ($ referenceEntityMediaFileApi );
252+ }
253+
254+ function it_gets_reference_entity_attribute_api ($ referenceEntityAttributeApi )
255+ {
256+ $ this ->getReferenceEntityAttributeApi ()->shouldReturn ($ referenceEntityAttributeApi );
257+ }
258+
259+ function it_gets_reference_entity_api ($ referenceEntityApi )
260+ {
261+ $ this ->getReferenceEntityApi ()->shouldReturn ($ referenceEntityApi );
262+ }
263+
264+ function it_gets_asset_manager_api ($ assetManagerApi )
265+ {
266+ $ this ->getAssetManagerApi ()->shouldReturn ($ assetManagerApi );
267+ }
268+
269+ function it_gets_asset_family_api ($ assetFamilyApi )
270+ {
271+ $ this ->getAssetFamilyApi ()->shouldReturn ($ assetFamilyApi );
272+ }
273+
274+ function it_gets_asset_attribute_api ($ assetAttributeApi )
275+ {
276+ $ this ->getAssetAttributeApi ()->shouldReturn ($ assetAttributeApi );
277+ }
278+
279+ function it_gets_asset_attribute_option_api ($ assetAttributeOptionApi )
280+ {
281+ $ this ->getAssetAttributeOptionApi ()->shouldReturn ($ assetAttributeOptionApi );
282+ }
283+
284+ function it_gets_asset_media_file_api ($ assetMediaFileApi )
285+ {
286+ $ this ->getAssetMediaFileApi ()->shouldReturn ($ assetMediaFileApi );
287+ }
153288}
0 commit comments