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