public function testGettingOrderShipmentsReturnsTheOrderShipmentsResource() { $this->connection->expects($this->once())->method('get')->with($this->basePath . '/orders/1/shipments', false)->will($this->returnValue(array(array(), array()))); $collection = Client::getShipments(1); $this->assertInternalType('array', $collection); foreach ($collection as $resource) { $this->assertInstanceOf('Bigcommerce\\Api\\Resources\\Shipment', $resource); } }