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:
Ingo Schommer 2016-03-31 17:43:08 +13:00
commit 3d1673f687
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;
}