/** * @codeCoverageIgnore * @return void */ protected function initIsProductHasSwatchAttribute() { $this->isProductHasSwatchAttribute = $this->swatchHelper->isProductHasSwatch($this->getProduct()); }
public function testIsProductHasSwatch() { $this->getSwatchAttributes(); $result = $this->swatchHelperObject->isProductHasSwatch($this->productMock); $this->assertEquals(2, $result); }