Dotclear

source: tests/unit/bootstrap.php @ 3064:a484a50c8c14

Revision 3064:a484a50c8c14, 1.4 KB checked in by Nicolas <nikrou77@…>, 10 years ago (diff)

dcTemplate::getSortByStr must allow new keys from foreign tables through templateCustomSortByAlias behavior.
Remove test for existing DC_RC_PATH constant.

Line 
1<?php
2# -- BEGIN LICENSE BLOCK ---------------------------------------
3#
4# This file is part of Dotclear 2.
5#
6# Copyright (c) 2003-2014 Olivier Meunier & Association Dotclear
7# Licensed under the GPL version 2.0 license.
8# See LICENSE file or
9# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
10#
11# -- END LICENSE BLOCK -----------------------------------------
12
13require_once __DIR__.'/../../vendor/autoload.php';
14
15define('CLEARBRICKS_PATH',__DIR__.'/../../inc/libs/clearbricks');
16
17$__autoload = array();
18$__autoload['dbLayer'] = CLEARBRICKS_PATH.'/dblayer/dblayer.php';
19$__autoload['staticRecord'] = CLEARBRICKS_PATH.'/dblayer/dblayer.php';
20$__autoload['sqliteConnection'] = CLEARBRICKS_PATH.'/dblayer/class.sqlite.php';
21$__autoload['mysqlConnection'] = CLEARBRICKS_PATH.'/dblayer/class.mysql.php';
22$__autoload['mysqliConnection'] = CLEARBRICKS_PATH.'/dblayer/class.mysqli.php';
23$__autoload['pgsqlConnection'] = CLEARBRICKS_PATH.'/dblayer/class.pgsql.php';
24$__autoload['record'] = CLEARBRICKS_PATH.'/dblayer/dblayer.php';
25$__autoload['template'] = CLEARBRICKS_PATH.'/template/class.template.php';
26$__autoload['path'] = CLEARBRICKS_PATH.'/common/lib.files.php';
27
28$__autoload['dcCore'] = __DIR__.'/../../inc/core/class.dc.core.php';
29$__autoload['dcNamespace'] = __DIR__.'/../../inc/core/class.dc.namespace.php';
30
31$loader = new \Composer\Autoload\ClassLoader();
32$loader->addClassMap($__autoload);
33$loader->register();
34
35function __($s) {
36    return $s;
37}
Note: See TracBrowser for help on using the repository browser.

Sites map