示例#1
0
 /**
  * @param int $id
  * @return bool
  */
 public function email($id)
 {
     return $this->creditmemoEmail->invoke($id);
 }
示例#2
0
 /**
  * test creditmemo email
  */
 public function testEmail()
 {
     $this->creditmemoEmailMock->expects($this->once())->method('invoke')->with(1)->will($this->returnValue(true));
     $this->assertTrue($this->creditmemoWrite->email(1));
 }