Changeset 12037
- Timestamp:
- 10/07/08 16:15:41 (5 years ago)
- Files:
-
- plugins/sfModerationPlugin/test/unit/all/sfModerationBasicFeaturesTest.php (modified) (2 diffs)
- plugins/sfModerationPlugin/test/unit/all/sfModerationCommentTest.php (modified) (2 diffs)
- plugins/sfModerationPlugin/test/unit/bootstrap.php (modified) (1 diff)
- plugins/sfModerationPlugin/test/unit/sfPropelModerationBehaviorTest.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfModerationPlugin/test/unit/all/sfModerationBasicFeaturesTest.php
r12026 r12037 9 9 */ 10 10 11 /**12 * Unit tests for the sfModerationPlugin plugin.13 *14 * Despite running unit tests, we use the functional tests bootstrap to take advantage of propel15 * classes autoloading...16 *17 * In order to run the tests in your context, you have to copy this file in a symfony test directory18 * and configure it appropriately (see the "configuration" section at the beginning of the file)19 *20 * @author Francois Zaninotto <francois.zaninotto@symfony-project.com>21 */22 11 include dirname(__FILE__).'/../bootstrap.php'; 23 12 … … 221 210 $common_columns = array_intersect($watch_columns, $test_watch_columns); 222 211 $t->is(count($common_columns), count($test_watch_columns), 'getWatchedColumns() includes all config watched columns'); 223 $t->ok(in_array($test_status_column, $watch_columns), 'getWatchedColumns() includes config watched columns');224 $t->ok(in_array($test_comment_column, $watch_columns), 'getWatchedColumns() includes config watched columns');212 $t->ok(in_array($test_status_column, $watch_columns), 'getWatchedColumns() includes config status column'); 213 $t->ok(in_array($test_comment_column, $watch_columns), 'getWatchedColumns() includes config comment column'); 225 214 if (constant($test_peer_class.'::EXTRA')) 226 215 { plugins/sfModerationPlugin/test/unit/all/sfModerationCommentTest.php
r11988 r12037 1 1 <?php 2 /* 2 /** 3 3 * This file is part of the sfModerationPlugin package. 4 4 * … … 9 9 */ 10 10 11 /**12 * Unit tests for the sfModerationPlugin plugin.13 *14 * Despite running unit tests, we use the functional tests bootstrap to take advantage of propel15 * classes autoloading...16 *17 * In order to run the tests in your context, you have to copy this file in a symfony test directory18 * and configure it appropriately (see the "configuration" section at the beginning of the file)19 *20 * @author Francois Zaninotto <francois.zaninotto@symfony-project.com>21 */22 11 include dirname(__FILE__).'/../bootstrap.php'; 23 12 plugins/sfModerationPlugin/test/unit/bootstrap.php
r11988 r12037 1 1 <?php 2 3 /** 4 * Despite running unit tests, we use the functional tests bootstrap to take advantage of propel 5 * classes autoloading... 6 */ 2 7 3 8 // Autofind the first available app environment plugins/sfModerationPlugin/test/unit/sfPropelModerationBehaviorTest.php
r11988 r12037 12 12 * Unit tests for the sfModerationPlugin plugin. 13 13 * 14 * Despite running unit tests, we use the functional tests bootstrap to take advantage of propel15 * classes autoloading...16 *17 14 * In order to run the tests in your context, you have to copy this file in a symfony test directory 18 15 * and configure it appropriately (see the "configuration" section at the beginning of the file)