public function testCompleteActionConfiguration()
{
$dbAdapter = GlobalAdapterFeature::getStaticAdapter();
$session = new SessionContainer();
$session->offsetSet('install', array('lang' => 'fr_FR', 'db' => array('driver' => GC_DATABASE_DRIVER, 'username' => GC_DATABASE_USERNAME, 'dbname' => GC_DATABASE_DATABASE, 'hostname' => GC_DATABASE_HOSTNAME, 'password' => GC_DATABASE_PASSWORD), 'configuration' => array('site_name' => 'GotCms', 'site_is_offline' => 0, 'admin_email' => '[email protected]', 'admin_firstname' => 'Pierre', 'admin_lastname' => 'Rambaud')));
$this->getRequest()->getHeaders()->addHeaderLine('X_REQUESTED_WITH: XMLHttpRequest');
$this->dispatch('/install/complete', 'POST', array('step' => 'c-cf'));
$this->assertResponseStatusCode(200);
$this->assertModuleName('GcFrontend');
$this->assertControllerName('InstallController');
$this->assertControllerClass('InstallController');
$this->assertMatchedRouteName('install/complete');
GlobalAdapterFeature::setStaticAdapter($dbAdapter);
}