1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
ini_set('display_errors', 1); |
4
|
|
|
error_reporting(E_ALL ^ E_STRICT); |
5
|
|
|
|
6
|
|
|
|
7
|
|
|
$babInstallPath = 'vendor/ovidentia/ovidentia/ovidentia/'; |
8
|
|
|
$GLOBALS['babInstallPath'] = $babInstallPath; |
9
|
|
|
|
10
|
|
|
require_once $GLOBALS['babInstallPath'].'utilit/dbutil.php'; |
11
|
|
|
require_once $GLOBALS['babInstallPath'].'utilit/defines.php'; |
12
|
|
|
require_once $GLOBALS['babInstallPath'].'utilit/addonapi.php'; |
13
|
|
|
require_once $GLOBALS['babInstallPath'].'utilit/userincl.php'; |
14
|
|
|
require_once $GLOBALS['babInstallPath'].'utilit/utilit.php'; |
15
|
|
|
|
16
|
|
|
$GLOBALS['babDBHost'] = 'localhost'; |
17
|
|
|
$GLOBALS['babDBLogin'] = 'test'; |
18
|
|
|
$GLOBALS['babDBPasswd'] = ''; |
19
|
|
|
$GLOBALS['babDBName'] = 'test'; |
20
|
|
|
|
21
|
|
|
$babDB = new babDatabase(); |
22
|
|
|
$GLOBALS['babDB'] = $babDB; // globalize |
23
|
|
|
|
24
|
|
|
exec('mysql -u test test < vendor/ovidentia/ovidentia/install/babinstall.sql'); |
25
|
|
|
exec('mysql -u test test < tests/mock/server.sql'); |
26
|
|
|
exec('mysql -u test test < tests/mock/ovidentia.sql'); |
27
|
|
|
|
28
|
|
|
// overwrite server host by environement variable |
29
|
|
|
// export RADICALE_URL="http://localhost:5232/" |
30
|
|
|
|
31
|
|
|
if ($new_url = getenv('RADICALE_URL')) { |
32
|
|
|
$babDB->db_query('UPDATE libcaldav_servers SET server_url='.$babDB->quote($new_url)); |
33
|
|
|
} |
34
|
|
|
|
35
|
|
|
|
36
|
|
|
require_once $GLOBALS['babInstallPath'].'utilit/functionalityincl.php'; |
37
|
|
|
require_once $GLOBALS['babInstallPath'].'utilit/cal.backend.class.php'; |
38
|
|
|
require_once $GLOBALS['babInstallPath'].'utilit/session.class.php'; |
39
|
|
|
$session = bab_getInstance('bab_Session'); |
40
|
|
|
/*@var $session bab_Session */ |
41
|
|
|
$session->setStorage(new bab_SessionMockStorage()); |
|
|
|
|
42
|
|
|
|
43
|
|
|
// functionality registration |
44
|
|
|
|
45
|
|
|
$functionalities = new bab_functionalities(); |
46
|
|
|
$functionalities->register('CalendarBackend', 'vendor/ovidentia/ovidentia/ovidentia/utilit/cal.backend.class.php'); |
47
|
|
|
$functionalities->register('CalendarBackend/Ovi', 'vendor/ovidentia/ovidentia/ovidentia/utilit/cal.backend.ovi.class.php'); |
48
|
|
|
$functionalities->register('CalendarBackend/Caldav', 'programs/caldav.class.php'); |
49
|
|
|
|
50
|
|
|
// includes needed for tests |
51
|
|
|
|
52
|
|
|
require_once $GLOBALS['babInstallPath'].'utilit/dateTime.php'; |
53
|
|
|
require_once $GLOBALS['babInstallPath'].'utilit/cal.calendarperiod.class.php'; |
54
|
|
|
require_once $GLOBALS['babInstallPath'].'utilit/calapi.php'; |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.