Skip to content

Commit 14a02c3

Browse files
Merge pull request #2013 from nextcloud/test/fix-autoloading
2 parents a47c3ac + 465fdee commit 14a02c3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/bootstrap.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
/**
46
* SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
57
* SPDX-License-Identifier: AGPL-3.0-or-later
@@ -9,7 +11,7 @@
911
require_once __DIR__ . '/../../../lib/base.php';
1012
require_once __DIR__ . '/../vendor/autoload.php';
1113

12-
\OC::$composerAutoloader->addPsr4('Tests\\', OC::$SERVERROOT . '/tests/unit/', true);
14+
require_once __DIR__ . '/../../../tests/autoload.php';
1315

1416
\OC_App::loadApp('circles');
1517

0 commit comments

Comments
 (0)