コード例 #1
0
 /**
  * test compare
  */
 public function testCompare()
 {
     $itemMock = $this->getMock('Magento\\Quote\\Model\\Quote\\Item', [], [], '', false);
     $this->compareHelper->expects($this->once())->method('compare')->with($this->equalTo($this->model), $this->equalTo($itemMock))->will($this->returnValue(true));
     $this->assertTrue($this->model->compare($itemMock));
 }