Permalink
Browse files

MINOR Don't show warning if running tests

  • Loading branch information...
1 parent b2d602f commit d7973ea006f218a27811bcb8a0bcd675fdbab24e @halkyon halkyon committed Apr 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 forms/TableListField.php
@@ -237,7 +237,7 @@ class TableListField extends FormField {
*/
function __construct($name, $sourceClass = null, $fieldList = null, $sourceFilter = null,
$sourceSort = null, $sourceJoin = null) {
- if(FRAMEWORK_DIR != 'sapphire') {
+ if(FRAMEWORK_DIR != 'sapphire' && !SapphireTest::is_running_test()) {
user_error('TableListField requires FRAMEWORK_DIR to be sapphire.', E_USER_WARNING);
}

0 comments on commit d7973ea

Please sign in to comment.