Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_bootstrap.php « tests - github.com/nextcloud/gallery.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 696adda99efe645b6e7a9ef22dbf6c073bbd0cce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
/**
 * ownCloud - gallery
 *
 * This file is licensed under the Affero General Public License version 3 or
 * later. See the COPYING file.
 *
 * @author Olivier Paroz <owncloud@interfasys.ch>
 *
 * @copyright Olivier Paroz 2015
 */

use Codeception\Util\Autoload;

define('PHPUNIT_RUN', 1);

// Add core
require_once __DIR__ . '/../../../lib/base.php';

// Add core tests to the list of valid paths
OC::$loader->addValidRoot(OC::$SERVERROOT . '/tests');

// Give access to core tests to Codeception
Autoload::addNamespace('Test', '/../../../tests/lib');

// Load all apps
OC_App::loadApps();

OC_Hook::clear();