-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Joas Schilling <[email protected]>
- Loading branch information
1 parent
31f294d
commit 7e84ac5
Showing
4 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
/** | ||
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors | ||
* SPDX-License-Identifier: AGPL-3.0-or-later | ||
* | ||
*/ | ||
if (!defined('PHPUNIT_RUN')) { | ||
define('PHPUNIT_RUN', 1); | ||
} | ||
|
||
require_once __DIR__.'/../../../lib/base.php'; | ||
|
||
// Fix for "Autoload path not allowed: .../tests/lib/testcase.php" | ||
\OC::$loader->addValidRoot(OC::$SERVERROOT . '/tests'); | ||
|
||
// Fix for "Autoload path not allowed: .../photos/tests/testcase.php" | ||
\OC_App::loadApp('photos'); | ||
|
||
if (!class_exists('\PHPUnit\Framework\TestCase')) { | ||
require_once('PHPUnit/Autoload.php'); | ||
} | ||
|
||
OC_Hook::clear(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<phpunit bootstrap="bootstrap.php" | ||
verbose="true" | ||
convertDeprecationsToExceptions="true" | ||
timeoutForSmallTests="900" | ||
timeoutForMediumTests="900" | ||
timeoutForLargeTests="900" | ||
> | ||
<testsuite name='Photos App Tests'> | ||
<directory suffix='Test.php'>.</directory> | ||
</testsuite> | ||
</phpunit> | ||
|