mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #5255 from tractorcow/pulls/4.0/fix-test-location
BUG move test file to correct folder and fix class_exists
This commit is contained in:
commit
3d1673f687
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user