/** * @expectedException \Magento\Framework\Exception\NotFoundException * @expectedExceptionMessage Product was not registered */ public function testGetProductWithException() { $this->assertInstanceOf(ProductInterface::class, $this->model->getProduct()); }
public function testGetProduct() { $this->assertInstanceOf('Magento\\Catalog\\Api\\Data\\ProductInterface', $this->model->getProduct()); }