public function testConfiguredThemeHomepageTemplate()
{
$this->getService('filesystem')->put('theme://custom-home.twig', '');
$this->getService('config')->set('theme/homepage_template', 'custom-home.twig');
$this->setRequest(Request::create('/'));
$response = $this->controller()->homepage($this->getRequest());
$this->assertTrue($response instanceof TemplateResponse);
$this->assertSame('custom-home.twig', $response->getTemplate()->getTemplateName());
}