throw new Exception('No app has been detected in this project');
}
// -- path to the symfony project where the plugin resides
$sf_path = dirname(__FILE__) . '/../../../..';
// bootstrap
include $sf_path . '/test/bootstrap/functional.php';
// create a new test browser
$browser = new sfTestBrowser();
$browser->initialize();
// initialize database manager
$databaseManager = new sfDatabaseManager();
$databaseManager->initialize();
$con = Propel::getConnection();
// cleanup database
sfSimpleForumCategoryPeer::doDeleteAll();
sfSimpleForumForumPeer::doDeleteAll();
sfSimpleForumPostPeer::doDeleteAll();
// Now we can start to test
$t = new lime_test(34, new lime_output_color());
// Initialization
$cat = new sfSimpleForumCategory();
$cat->save();
$forum = new sfSimpleForumForum();
$forum->setCategoryId($cat->getId());
$forum->save();
$topic = new sfSimpleForumTopic();
$topic->setTitle('This is a test');
$topic->setsfSimpleForumForum($forum);
$topic->save();
$user0 = new sfGuardUser();
$user0->setUsername('me');