Files
nextcloud-recognize/tests/bootstrap.php
Marcel Klehr 3b2f85024b Fix: Fix tests by re-registering fs hooks
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2025-12-18 09:22:39 +01:00

19 lines
503 B
PHP

<?php
/**
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
require_once __DIR__ . '/../../../tests/bootstrap.php';
use OCA\Recognize\AppInfo\Application;
use OCP\App\IAppManager;
\OCP\Server::get(IAppManager::class)->loadApp(Application::APP_ID);
// Make sure hooks are registered:
\OCP\Server::get(\OC\Files\Node\HookConnector::class)->viewToNode();
// Do not clear hooks, we need them for our tests!
// OC_Hook::clear();