mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUG move test file to correct folder and fix class_exists
This commit is contained in:
parent
449a41a66a
commit
d8d005d1e2
@ -522,7 +522,7 @@ class Member extends DataObject implements TemplateGlobalProvider {
|
|||||||
*/
|
*/
|
||||||
public static function autoLogin() {
|
public static function autoLogin() {
|
||||||
// Don't bother trying this multiple times
|
// 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;
|
self::$_already_tried_to_auto_log_in = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user