From 42e1445d598a678f07da42d3eb689470ebc2286c Mon Sep 17 00:00:00 2001 From: Elizabeth Danzberger Date: Tue, 3 Jun 2025 17:13:45 -0400 Subject: [PATCH] fix(tests): use `autoload.php` for unit tests Signed-off-by: Elizabeth Danzberger --- tests/bootstrap.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/tests/bootstrap.php b/tests/bootstrap.php index cf8552eeea..7974703b45 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -1,17 +1,24 @@ loadApp('richdocuments'); if (!class_exists(\PHPUnit\Framework\TestCase::class)) { require_once('PHPUnit/Autoload.php'); } -\OC_App::loadApp('richdocuments'); -OC_Hook::clear();