public function testDashboardNewsWithInvalidRequest()
{
$this->setRequest(Request::create('/async/dashboardnews'));
$app = $this->getApp();
$testGuzzle = $this->getMockGuzzleClient();
$requestInterface = $this->createMock(RequestInterface::class);
$testGuzzle->expects($this->at(0))->method('get')->will($this->throwException(new RequestException('Mock Fail', $requestInterface)));
$app['guzzle.client'] = $testGuzzle;
$logger = $this->getMockLoggerManager();
$logger->expects($this->at(1))->method('error')->with($this->stringContains('Error occurred'));
$app['logger.system'] = $logger;
$this->controller()->dashboardNews($this->getRequest());
}