*
 * You should have received a copy of the GNU General Public License
 * along with Tuleap; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 */
class SVN_Apache_SvnrootConfTestEventManager extends EventManager
{
    public function processEvent($event_name, $params)
    {
        $project_row = array();
        $params['svn_apache_auth'] = null;
    }
}
require_once 'common/svn/SVN_Apache_SvnrootConf.class.php';
mock::generate('EventManager');
class SVN_Apache_SvnrootConfTest extends TuleapTestCase
{
    function setUp()
    {
        ForgeConfig::store();
        $GLOBALS['sys_name'] = 'Platform';
        $GLOBALS['sys_dbhost'] = 'db_server';
        $GLOBALS['sys_dbname'] = 'db';
        $GLOBALS['svn_prefix'] = '/bla';
        $GLOBALS['sys_dbauth_user'] = '******';
        $GLOBALS['sys_dbauth_passwd'] = 'dbauth_passwd';
    }
    function tearDown()
    {
        ForgeConfig::restore();