public function testChangeOverview()
{
$this->allowLogin($this->getApp());
$log = $this->getMockLoggerManager();
$log->expects($this->once())->method('clear')->will($this->returnValue(true));
$log->expects($this->once())->method('trim')->will($this->returnValue(true));
$this->setService('logger.manager', $log);
$this->setRequest(Request::create('/bolt/changelog', 'GET', ['action' => 'trim']));
$this->controller()->changeOverview($this->getRequest());
$this->assertNotEmpty($this->getFlashBag()->get('success'));
$this->setRequest(Request::create('/bolt/changelog', 'GET', ['action' => 'clear']));
$response = $this->controller()->changeOverview($this->getRequest());
$this->assertNotEmpty($this->getFlashBag()->get('success'));
$this->assertEquals('/bolt/changelog', $response->getTargetUrl());
$this->setRequest(Request::create('/bolt/changelog'));
$this->checkTwigForTemplate($this->getApp(), '@bolt/activity/changelog.twig');
$this->controller()->changeOverview($this->getRequest());
}