Skip to content

Commit

Permalink
MINOR Don't show warning if running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
halkyon committed Apr 14, 2012
1 parent b2d602f commit d7973ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion forms/TableListField.php
Expand Up @@ -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);
}

Expand Down

0 comments on commit d7973ea

Please sign in to comment.