コード例 #1
0
ファイル: ServiceTest.php プロジェクト: Ryan-Nolan/boxbilling
 /**
  * @expectedException \Box_Exception
  */
 public function testResetTemplateByCodeException()
 {
     $service = new \Box\Mod\Email\Service();
     $db = $this->getMockBuilder('Box_Database')->getMock();
     $db->expects($this->atLeastOnce())->method('findOne')->will($this->returnValue(false));
     $di = new \Box_Di();
     $di['db'] = $db;
     $service->setDi($di);
     $service->resetTemplateByCode('mod_email_test');
 }