Example #1
0
 /**
  * @param int $id
  * @return bool
  */
 public function email($id)
 {
     return $this->orderEmail->invoke($id);
 }
Example #2
0
 /**
  * test order email
  */
 public function testEmail()
 {
     $this->orderEmailMock->expects($this->once())->method('invoke')->with(1)->will($this->returnValue(true));
     $this->assertTrue($this->orderWrite->email(1));
 }