From d8d005d1e27d0105fade2c4758f2a695cb09a4e4 Mon Sep 17 00:00:00 2001 From: Damian Mooyman Date: Thu, 31 Mar 2016 17:03:37 +1300 Subject: [PATCH] BUG move test file to correct folder and fix class_exists --- security/Member.php | 2 +- {filesystem => tests/filesystem}/AssetAdapterTest.php | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename {filesystem => tests/filesystem}/AssetAdapterTest.php (100%) diff --git a/security/Member.php b/security/Member.php index 3d71db9ee..98348c8bb 100644 --- a/security/Member.php +++ b/security/Member.php @@ -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; } diff --git a/filesystem/AssetAdapterTest.php b/tests/filesystem/AssetAdapterTest.php similarity index 100% rename from filesystem/AssetAdapterTest.php rename to tests/filesystem/AssetAdapterTest.php