/**
  * @covers DmMailerAdmin\Controller\CampaignController
  */
 public function testUpdateActionReturnsViewWhenHandlePostSuccess()
 {
     $responseMock = $this->mockFactory->getResponseMock();
     $redirectPluginMock = $this->mockFactory->getRedirectPluginMock($responseMock);
     $paramsPluginMock = $this->mockFactory->getParamsMock(1);
     $flashMessengerMock = $this->mockFactory->getFlashMessengerPluginMock(1, 0);
     $pluginManagerMock = $this->mockFactory->getPluginMock($paramsPluginMock, $flashMessengerMock, $redirectPluginMock);
     $this->sut->setPluginManager($pluginManagerMock);
     $this->repositoryMock->expects($this->any())->method('getOneById')->will($this->returnValue($this->getCampaignMock()));
     $this->messageRepoMock->expects($this->any())->method('getSystemMessage')->will($this->returnValue($this->getMessageMock()));
     $this->managerMock->expects($this->once())->method('handlePost')->will($this->returnValue(true));
     $actualResult = $this->sut->updateAction();
     $this->assertSame($responseMock, $actualResult);
 }