public function testInsertProductData() { $productId = 100; $productMock = $this->getMock('\\Magento\\Catalog\\Model\\Product', ['getId'], [], '', false); $productMock->expects($this->once())->method('getId')->willReturn($productId); $this->connectionMock->expects($this->once())->method('insert')->with('table_name', ['entity_id' => $productId]); $this->assertEquals($this->model, $this->model->insertProductData($productMock, [])); }
/** * {@inheritdoc} */ public function getTable() { return $this->_attributeTax->getTable('weee_tax'); }