Skip to content

Instantly share code, notes, and snippets.

@ringmaster
Created April 25, 2012 19:58
Show Gist options
  • Save ringmaster/2492886 to your computer and use it in GitHub Desktop.
Save ringmaster/2492886 to your computer and use it in GitHub Desktop.
Habari Test Configuration
<?php
if(Utils::env_test()) {
Config::set( 'db_connection', array(
'connection_string'=>'sqlite:habari_unittest.db',
'username'=>'',
'password'=>'',
'prefix'=>''
));
Config::set('blog_data', array(
'admin_username' => 'admin',
'admin_pass1' => 'password',
'admin_pass2' => 'password',
'blog_title' => 'Testing Blog',
'admin_email' => '[email protected]',
'option_theme_name' => 'Charcoal',
'option_theme_dir' => 'charcoal',
));
}
else {
Config::set( 'db_connection', array(
'connection_string'=>'mysql:host=localhost;dbname=habari',
'username'=>'root',
'password'=>'',
'prefix'=>''
));
}
//define('DEBUG',1 );
// $locale = 'en-us';
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment