Development

Changeset 7183

You must first sign up to be able to contribute.

Changeset 7183

Show
Ignore:
Timestamp:
01/25/08 13:33:48 (10 months ago)
Author:
fabien
Message:

removed map/om/sql/forms files from fixtures

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/lib/plugins/sfPropelPlugin/test/bootstrap/functional.php

    r5260 r7183  
    3030sfToolkit::clearDirectory(sfConfig::get('sf_app_cache_dir')); 
    3131 
     32// build Propel om/map/sql/forms 
     33$files = glob(sfConfig::get('sf_lib_dir').'/model/om/*.php'); 
     34if (false === $files || !count($files)) 
     35{ 
     36  chdir(sfConfig::get('sf_root_dir')); 
     37  $task = new sfPropelBuildModelTask(new sfEventDispatcher(), new sfFormatter()); 
     38  ob_start(); 
     39  $task->run(); 
     40  $output = ob_get_clean(); 
     41} 
     42 
     43$files = glob(sfConfig::get('sf_data_dir').'/sql/*.php'); 
     44if (false === $files || !count($files)) 
     45{ 
     46  chdir(sfConfig::get('sf_root_dir')); 
     47  $task = new sfPropelBuildSqlTask(new sfEventDispatcher(), new sfFormatter()); 
     48  ob_start(); 
     49  $task->run(); 
     50  $output = ob_get_clean(); 
     51} 
     52 
     53$files = glob(sfConfig::get('sf_lib_dir').'/form/base/*.php'); 
     54if (false === $files || !count($files)) 
     55{ 
     56  chdir(sfConfig::get('sf_root_dir')); 
     57  $task = new sfPropelBuildFormsTask(new sfEventDispatcher(), new sfFormatter()); 
     58  $task->run(); 
     59} 
     60 
    3261if (isset($fixtures)) 
    3362{ 
    3463  // initialize database manager 
    3564  $databaseManager = new sfDatabaseManager(); 
    36   $databaseManager->initialize(); 
    3765 
    3866  // cleanup database