Esempio n. 1
0
 protected function getMap($route, Product $product)
 {
     return $this->factoryMap($route, ['itemId' => $product->getId()]);
 }
Esempio n. 2
0
 /**
  * @dataProvider dataProviderProducts
  */
 public function testPossuiUmaColecaoAttributes(Product $product)
 {
     foreach ($product->getAttributes() as $attribute) {
         $this->assertInstanceOf('Gpupo\\CnovaSdk\\Entity\\Product\\Attributes\\Attribute', $attribute);
     }
 }