@@ -283,21 +283,18 @@ public function testGetRequestsRemainingRequestsTimeWhenNoValueAvailable()
283283
284284 public function collections ()
285285 {
286- return array (
286+ return [
287287 // path function classname
288- array ('products ' , 'getProducts ' , 'Product ' ),
289- array ('brands ' , 'getBrands ' , 'Brand ' ),
290- array ('orders ' , 'getOrders ' , 'Order ' ),
291- array ('customers ' , 'getCustomers ' , 'Customer ' ),
292- array ('coupons ' , 'getCoupons ' , 'Coupon ' ),
293- array ('order_statuses ' , 'getOrderStatuses ' , 'OrderStatus ' ),
294- array ('categories ' , 'getCategories ' , 'Category ' ),
295- array ('options ' , 'getOptions ' , 'Option ' ),
296- array ('optionsets ' , 'getOptionSets ' , 'OptionSet ' ),
297- array ('products/skus ' , 'getSkus ' , 'Sku ' ),
298- array ('requestlogs ' , 'getRequestLogs ' , 'RequestLog ' ),
299- array ('pages ' , 'getPages ' , 'Page ' ),
300- );
288+ ['products ' , 'getProducts ' , 'Product ' ],
289+ ['brands ' , 'getBrands ' , 'Brand ' ],
290+ ['orders ' , 'getOrders ' , 'Order ' ],
291+ ['customers ' , 'getCustomers ' , 'Customer ' ],
292+ ['coupons ' , 'getCoupons ' , 'Coupon ' ],
293+ ['categories ' , 'getCategories ' , 'Category ' ],
294+ ['options ' , 'getOptions ' , 'Option ' ],
295+ ['optionsets ' , 'getOptionSets ' , 'OptionSet ' ],
296+ ['products/skus ' , 'getSkus ' , 'Sku ' ],
297+ ];
301298 }
302299
303300 /**
@@ -322,11 +319,6 @@ public function testGettingASpecificResourceReturnsACollectionOfThatResource($pa
322319 */
323320 public function testGettingTheCountOfACollectionReturnsThatCollectionsCount ($ path , $ fnName , $ class )
324321 {
325- if (in_array ($ path , array ('order_statuses ' , 'requestlogs ' , 'pages ' ))) {
326- //$this->markTestSkipped(sprintf('The API does not currently support getting the count of %s', $path));
327- return ;
328- }
329-
330322 $ this ->connection ->expects ($ this ->once ())
331323 ->method ('get ' )
332324 ->with ($ this ->basePath . '/ ' . $ path . '/count ' , false )
@@ -339,19 +331,19 @@ public function testGettingTheCountOfACollectionReturnsThatCollectionsCount($pat
339331
340332 public function resources ()
341333 {
342- return array (
334+ return [
343335 // path function classname
344- array ( 'products ' , '%sProduct ' , 'Product ' ) ,
345- array ( 'brands ' , '%sBrand ' , 'Brand ' ) ,
346- array ( 'orders ' , '%sOrder ' , 'Order ' ) ,
347- array ( 'customers ' , '%sCustomer ' , 'Customer ' ) ,
348- array ( 'categories ' , '%sCategory ' , 'Category ' ) ,
349- array ( 'options ' , '%sOption ' , 'Option ' ) ,
350- array ( 'optionsets ' , '%sOptionSet ' , 'OptionSet ' ) ,
351- array ( 'coupons ' , '%sCoupon ' , 'Coupon ' ) ,
352- array ( 'currencies ' , '%sCurrency ' , 'Currency ' ) ,
353- array ( 'pages ' , '%sPage ' , 'Page ' ) ,
354- ) ;
336+ [ 'products ' , '%sProduct ' , 'Product ' ] ,
337+ [ 'brands ' , '%sBrand ' , 'Brand ' ] ,
338+ [ 'orders ' , '%sOrder ' , 'Order ' ] ,
339+ [ 'customers ' , '%sCustomer ' , 'Customer ' ] ,
340+ [ 'categories ' , '%sCategory ' , 'Category ' ] ,
341+ [ 'options ' , '%sOption ' , 'Option ' ] ,
342+ [ 'optionsets ' , '%sOptionSet ' , 'OptionSet ' ] ,
343+ [ 'coupons ' , '%sCoupon ' , 'Coupon ' ] ,
344+ [ 'currencies ' , '%sCurrency ' , 'Currency ' ] ,
345+ [ 'pages ' , '%sPage ' , 'Page ' ] ,
346+ ] ;
355347 }
356348
357349 /**
0 commit comments