public function testToArray() { $collection = new ProductCollection(); $product = new Product(); $product->setSellerSku('123ABCMOB'); $collection->add($product); $expected = [['SellerSku' => '123ABCMOB']]; $this->assertEquals($expected, $collection->toArray()); }
/** * @return array */ public function toArray() { return $this->products->toArray(); }