protected function setUp()
 {
     parent::setUp();
     $this->slotsManagerFactory = $this->getMock('\\RedKiteCms\\Content\\SlotsManager\\SlotsManagerFactoryInterface');
     $this->configurationHandler = $this->initConfigurationHandler();
     $this->pageManger = new PageCollectionManager($this->configurationHandler, $this->slotsManagerFactory);
 }
 protected function initConfigurationHandler()
 {
     $configurationHandler = parent::initConfigurationHandler();
     $configurationHandler->expects($this->once())->method('homepage')->will($this->returnValue('homepage'));
     $configurationHandler->expects($this->once())->method('language')->will($this->returnValue('en'));
     $configurationHandler->expects($this->once())->method('country')->will($this->returnValue('GB'));
     $configurationHandler->expects($this->once())->method('languages')->will($this->returnValue(array('en_GB', 'it_IT')));
     return $configurationHandler;
 }