コード例 #1
0
 public function testCronScriptActionBothNotice()
 {
     $this->cronScriptReadinessCheck->expects($this->once())->method('checkSetup')->willReturn(['success' => true, 'notice' => 'notice setup']);
     $this->cronScriptReadinessCheck->expects($this->once())->method('checkUpdater')->willReturn(['success' => true, 'notice' => 'notice updater']);
     $expected = new JsonModel(['responseType' => ResponseTypeInterface::RESPONSE_TYPE_SUCCESS, 'setupNoticeMessage' => 'Notice from Setup Application Cron Script:<br/>notice setup', 'updaterNoticeMessage' => 'Notice from Updater Application Cron Script:<br/>notice updater']);
     $this->assertEquals($expected, $this->environment->cronScriptAction());
 }
コード例 #2
0
 public function testIndexAction()
 {
     $model = $this->environment->indexAction();
     $this->assertInstanceOf('Zend\View\Model\JsonModel', $model);
 }