Пример #1
0
 /**
  * Test
  *
  * @return void
  */
 public function testOnBootstrap()
 {
     $oldAdapter = GlobalAdapterFeature::getStaticAdapter();
     $this->config->setValue('debug_is_active', 1);
     $this->config->setValue('session_lifetime', 3600);
     $this->config->setValue('cookie_domain', 'got-cms.com');
     $this->config->setValue('session_handler', CoreConfig::SESSION_DATABASE);
     $this->assertNull($this->object->onBootstrap(Registry::get('Application')->getMvcEvent()));
     GlobalAdapterFeature::setStaticAdapter($oldAdapter);
 }