Changeset 6521
- Timestamp:
- 12/16/07 11:15:24 (9 months ago)
- Files:
-
- trunk/test/other/fixtures/propel/databases.yml (added)
- trunk/test/other/fixtures/propel/propel.ini (added)
- trunk/test/other/tasksTest.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/test/other/tasksTest.php
r6502 r6521 58 58 } 59 59 60 $t = new lime_test(3 3, new lime_output_color());60 $t = new lime_test(35, new lime_output_color()); 61 61 $c = new symfony_cmd(); 62 62 $c->initialize($t); … … 74 74 $t->ok(is_dir($c->tmp_dir.DS.'apps'.DS.'frontend'.DS.'modules'.DS.'foo'), '"generate:module" creates a "foo" directory under "modules" directory'); 75 75 76 copy(dirname(__FILE__).'/fixtures/propel/schema.yml', $c->tmp_dir.DS.'config'.DS.'schema.yml'); 77 copy(dirname(__FILE__).'/fixtures/propel/databases.yml', $c->tmp_dir.DS.'config'.DS.'databases.yml'); 78 copy(dirname(__FILE__).'/fixtures/propel/propel.ini', $c->tmp_dir.DS.'config'.DS.'propel.ini'); 79 76 80 // propel:* 77 copy(dirname(__FILE__).'/fixtures/propel/schema.yml', $c->tmp_dir.DS.'config'.DS.'schema.yml');78 79 81 $content = $c->execute_command('propel:build-sql'); 80 82 $t->ok(file_exists($c->tmp_dir.DS.'data'.DS.'sql'.DS.'lib.model.schema.sql'), '"propel:build-sql" creates a "schema.sql" file under "data/sql" directory'); … … 82 84 $content = $c->execute_command('propel:build-model'); 83 85 $t->ok(file_exists($c->tmp_dir.DS.'lib'.DS.'model'.DS.'Article.php'), '"propel:build-model" creates model classes under "lib/model" directory'); 86 87 $c->execute_command('propel:insert-sql'); 88 $file = dirname(__FILE__).DS.'..'.DS.'..'.DS.'lib'.DS.'plugins'.DS.'sfPropelPlugin'.DS.'lib'.DS.'vendor'.DS.'propel-generator'.DS.'database.sqlite'; 89 $t->ok(file_exists($file), '"propel:insert-sql" creates tables in the database'); 90 rename($file, $c->tmp_dir.'/data/database.sqlite'); 84 91 85 92 $content = $c->execute_command('propel:init-crud frontend articleInitCrud Article');