From 383ed0089db1f4c9dce7928af778a5b31b692088 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= Date: Mon, 19 May 2025 11:21:55 +0200 Subject: [PATCH] chore: Add an autoload.php file for tests relying on core class MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- tests/autoload.php | 16 ++++++++++++++++ tests/bootstrap.php | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 tests/autoload.php diff --git a/tests/autoload.php b/tests/autoload.php new file mode 100644 index 00000000000..05fc3852924 --- /dev/null +++ b/tests/autoload.php @@ -0,0 +1,16 @@ +addPsr4('Test\\', OC::$SERVERROOT . '/tests/lib/', true); diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 5ce6bc400bd..f633e50a8cf 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -13,8 +13,8 @@ if ($configDir) { } require_once __DIR__ . '/../lib/base.php'; +require_once __DIR__ . '/autoload.php'; -\OC::$composerAutoloader->addPsr4('Test\\', OC::$SERVERROOT . '/tests/lib/', true); \OC::$composerAutoloader->addPsr4('Tests\\', OC::$SERVERROOT . '/tests/', true); // load all enabled apps