-
-
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 b2d16da
Showing
4 changed files
with
55 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,39 @@ | ||
<?php | ||
/** | ||
* @copyright Copyright (c) 2016, ownCloud, Inc. | ||
* | ||
* @author Joas Schilling <[email protected]> | ||
* @author Jörn Friedrich Dreyer <[email protected]> | ||
* | ||
* @license AGPL-3.0 | ||
* | ||
* This code is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License, version 3, | ||
* as published by the Free Software Foundation. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License, version 3, | ||
* along with this program. If not, see <http://www.gnu.org/licenses/> | ||
* | ||
*/ | ||
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: .../activity/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> | ||
|