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