Hi,
I'm trying to accessing to my database in a unit test. I use Lime for
those tests. I have the following exception when I execute my test :

[PropelException]
  No connection params set for propel

I think I've included all the needed... Here is my code :

<?php

include(dirname(__FILE__).'/../bootstrap/unit.php');

define('SF_APP', 'frontend');
define('SF_DEBUG', true);
define('SF_ENVIRONMENT', 'test');

require_once(SF_ROOT_DIR.'/apps/'.SF_APP.'/config/config.php');

require_once($sf_symfony_lib_dir.'/util/sfCore.class.php');

sfCore::initSimpleAutoload(
  array(
    $sf_symfony_lib_dir,
    SF_ROOT_DIR.'/lib/model',
    SF_ROOT_DIR.'/apps/'.SF_APP.'/lib'
    )
);

set_include_path($sf_symfony_lib_dir.'/
vendor'.PATH_SEPARATOR.SF_ROOT_DIR.PATH_SEPARATOR.get_include_path());

$databaseManager = new sfDatabaseManager();
$databaseManager->initialize();

// Initialize the test object
$t = new lime_test(1, new lime_output_color());

[some stuff]

$myObject->save(); // it's exploding here



Can you see where my mistake is ?
Thanks a lot!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to