public function testProcessFreeShipping() { $item = $this->getMock('Magento\\Quote\\Model\\Quote\\Item', ['getAddress', '__wakeup'], [], '', false); $item->expects($this->once())->method('getAddress')->will($this->returnValue(true)); $this->assertInstanceOf('Magento\\OfflineShipping\\Model\\SalesRule\\Calculator', $this->_model->processFreeShipping($item)); return true; }