Пример #1
0
 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, []));
 }
Пример #2
0
 /**
  * {@inheritdoc}
  */
 public function getTable()
 {
     return $this->_attributeTax->getTable('weee_tax');
 }