/**
  * Return a mock of the ProductCollection
  *
  * @return \Mobly\Buscape\Sdk\Collection\ProductCollection
  **/
 protected function getCollection()
 {
     $collection = new ProductCollection();
     for ($i = 0; $i < $this->totalItems; $i++) {
         $product = new Product();
         $product->setGroupId($i);
         $product->setSku(uniqid($i));
         $collection->add($product);
     }
     return $collection;
 }
 public function testValidateTrue()
 {
     $product = new Product(['sku' => 'unit', 'prices' => [['type' => Product\Price::TYPE_BOLETO, 'price' => 100.0], ['type' => Product\Price::TYPE_CARTAO_PARCELADO_COM_JUROS, 'price' => 150.0, 'installments' => 3, 'installmentsValue' => 50]], 'quantity' => 1, 'category' => 'Unit > Test', 'description' => 'Test unit to product', 'images' => [['url' => 'http://image.com/teste10.jpg'], ['url' => 'http://image.com/teste20.jpg']], 'link' => 'http://link.com/unit', 'technicalSpecification' => [['key' => 'Unit2', 'value' => 'Use'], ['key' => 'Another', 'value' => 'Unit2']], 'sizeHeight' => 10, 'sizeLength' => 10, 'sizeWidth' => 10, 'weightValue' => 0, 'marketplace' => 'PHP Unit']);
     $this->assertTrue($product->isValid());
 }