Ejemplo n.º 1
0
 public function testGetWishlistOptions()
 {
     $typeId = 'simple';
     $product = $this->getMockBuilder('Magento\\Catalog\\Model\\Product')->disableOriginalConstructor()->getMock();
     $product->expects($this->once())->method('getTypeId')->willReturn($typeId);
     $this->_mockRegistry->expects($this->once())->method('registry')->with($this->equalTo('product'))->willReturn($product);
     $this->assertEquals(['productType' => $typeId], $this->_model->getWishlistOptions());
 }