/** * @dataProvider dataProviderSkus */ public function testAcessaAInformacoesDeUmSku($id, $name) { if (!$this->hasToken()) { return $this->markTestSkipped('API Token ausente'); } $manager = new Manager($this->factoryClient()); $item = $manager->findById($id); $this->assertInstanceOf('\\Gpupo\\SubmarinoSdk\\Entity\\Product\\Sku\\Sku', $item); $this->assertEquals($id, $item->getId()); $this->assertEquals($name, $item->getName()); $this->assertInstanceOf('\\Gpupo\\SubmarinoSdk\\Entity\\Product\\Sku\\Price', $item->getPrice()); }