Skip to content
This repository
Browse code

MINOR Don't show warning if running tests

  • Loading branch information...
commit d7973ea006f218a27811bcb8a0bcd675fdbab24e 1 parent b2d602f
Sean Harvey authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  forms/TableListField.php
2  forms/TableListField.php
@@ -237,7 +237,7 @@ class TableListField extends FormField {
237 237
 	 */
238 238
 	function __construct($name, $sourceClass = null, $fieldList = null, $sourceFilter = null, 
239 239
 		$sourceSort = null, $sourceJoin = null) {
240  
-		if(FRAMEWORK_DIR != 'sapphire') {
  240
+		if(FRAMEWORK_DIR != 'sapphire' && !SapphireTest::is_running_test()) {
241 241
 			user_error('TableListField requires FRAMEWORK_DIR to be sapphire.', E_USER_WARNING);
242 242
 		}
243 243
 

0 notes on commit d7973ea

Please sign in to comment.
Something went wrong with that request. Please try again.