BUG move test file to correct folder and fix class_exists

This commit is contained in:
Damian Mooyman 2016-03-31 17:03:37 +13:00
parent 449a41a66a
commit d8d005d1e2
2 changed files with 1 additions and 1 deletions

View File

@ -522,7 +522,7 @@ class Member extends DataObject implements TemplateGlobalProvider {
*/
public static function autoLogin() {
// Don't bother trying this multiple times
if (!class_exists('SapphireTest') || !SapphireTest::is_running_test()) {
if (!class_exists('SapphireTest', false) || !SapphireTest::is_running_test()) {
self::$_already_tried_to_auto_log_in = true;
}