From f5b7c7498ee2a3f8609eba43ecc1acaa42f51b00 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 0000000000000..05fc38529242f --- /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 3fdc6b51fbad4..655b60f114b68 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -12,8 +12,8 @@ } 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