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