Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MINOR Don't show warning if running tests

  • Loading branch information...
commit d7973ea006f218a27811bcb8a0bcd675fdbab24e 1 parent b2d602f
Sean Harvey halkyon authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  forms/TableListField.php
2  forms/TableListField.php
View
@@ -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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.