Changeset 1315
- Timestamp:
- 05/04/06 12:53:25 (3 years ago)
- Files:
-
- trunk/doc/book/content/test_unit_testing.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/doc/book/content/test_unit_testing.txt
r850 r1315 112 112 >**Note**: The extensive list of the `assert` methods can be found in the [Simple Test documentation][3]. 113 113 114 ### Unit tests accessing the database 115 116 If you want to include unit tests which need a connection to the database, initialize it in the `setUp()` method as follows: 117 118 [php] 119 public function setUp () 120 { 121 // initialize the database manager 122 $databaseManager = new sfDatabaseManager(); 123 $databaseManager->initialize(); 124 } 125 126 You can then use the database connections and Propel objects just like in actions. 127 114 128 ### Running unit tests 115 129