public function testToArray() { $collection = new ImageUriCollection(); $collection->add(new ImageUri('http://host.com/img.jpg')); $expected = ['http://host.com/img.jpg']; $this->assertEquals($expected, $collection->toArray()); }
/** * {@inheritDoc} */ public function toArray() { return ['SellerSku' => $this->getSellerSku(), 'Images' => parent::toArray()]; }