mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Don't show warning if running tests
This commit is contained in:
parent
b2d602f275
commit
d7973ea006
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user