Пример #1
0
 public function testGetAllowAttributes()
 {
     $typeInstanceMock = $this->getMock('Magento\\ConfigurableProduct\\Model\\Product\\Type\\Configurable', [], [], '', false);
     $typeInstanceMock->expects($this->once())->method('getConfigurableAttributes')->with($this->_productMock);
     $this->_productMock->expects($this->once())->method('getTypeInstance')->will($this->returnValue($typeInstanceMock));
     $this->_model->getAllowAttributes($this->_productMock);
 }