public function testCollectInFrontendScope()
{
$layout = new \stdClass();
$layout->name = 'Default';
$layout->id = 2;
$layout->template = 'fe_page';
$adapter = $this->getMockBuilder('Contao\\CoreBundle\\Framework\\Adapter')->setMethods(['__call'])->disableOriginalConstructor()->getMock();
$adapter->expects($this->any())->method('__call')->willReturn($layout);
global $objPage;
$objPage = new \stdClass();
$objPage->layoutId = 2;
$collector = new ContaoDataCollector([]);
$collector->setContainer($this->mockContainerWithContaoScopes(ContaoCoreBundle::SCOPE_FRONTEND));
$collector->setFramework($this->mockContaoFramework(null, null, ['Contao\\LayoutModel' => $adapter]));
$collector->collect(new Request(), new Response());
$this->assertEquals(['version' => '', 'framework' => false, 'models' => 0, 'frontend' => true, 'preview' => false, 'layout' => 'Default (ID 2)', 'template' => 'fe_page'], $collector->getSummary());
}