コード例 #1
0
ファイル: ServiceTest.php プロジェクト: Ryan-Nolan/boxbilling
 public function testTemplateBatchEnable()
 {
     $service = new \Box\Mod\Email\Service();
     $db = $this->getMockBuilder('Box_Database')->getMock();
     $db->expects($this->atLeastOnce())->method('exec')->will($this->returnValue(true));
     $di = new \Box_Di();
     $di['db'] = $db;
     $di['logger'] = $this->getMockBuilder('Box_Log')->getMock();
     $service->setDi($di);
     $result = $service->templateBatchEnable();
     $this->assertTrue($result, true);
 }