public function testDashboard()
{
$render = $this->getMockRender($this->getApp());
$phpunit = $this;
$testHandler = function ($template, $context) use($phpunit) {
$phpunit->assertEquals('@bolt/dashboard/dashboard.twig', $template);
$phpunit->assertNotEmpty($context['context']);
$phpunit->assertArrayHasKey('latest', $context['context']);
$phpunit->assertArrayHasKey('suggestloripsum', $context['context']);
return new Response();
};
$render->expects($this->atLeastOnce())->method('render')->will($this->returnCallback($testHandler));
$this->allowLogin($this->getApp());
$this->setService('render', $render);
$this->setRequest(Request::create('/bolt'));
$this->controller()->dashboard();
}