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