2013-08-20 03:32:36 +02:00
|
|
|
<?php
|
|
|
|
|
2015-02-11 19:33:33 +01:00
|
|
|
if (!defined('PHPUNIT_RUN')) {
|
2013-09-16 21:29:33 +02:00
|
|
|
define('PHPUNIT_RUN', 1);
|
|
|
|
}
|
2015-02-11 19:33:33 +01:00
|
|
|
|
2015-05-04 00:36:13 +02:00
|
|
|
require_once __DIR__.'/../../../lib/base.php';
|
2013-08-20 03:32:36 +02:00
|
|
|
|
|
|
|
if(!class_exists('PHPUnit_Framework_TestCase')) {
|
|
|
|
require_once('PHPUnit/Autoload.php');
|
|
|
|
}
|
|
|
|
|
|
|
|
OC_Hook::clear();
|
2015-02-11 19:33:33 +01:00
|
|
|
OCP\Util::connectHook('OCA\Contacts', 'pre_deleteContact', '\OCA\Contacts\Hooks', 'contactDeletion');
|
|
|
|
Sabre\VObject\Component\VCard::$componentMap['VCARD'] = '\OCA\Contacts\VObject\VCard';
|
2015-07-06 17:02:31 +02:00
|
|
|
Sabre\VObject\Component\VCard::$propertyMap['CATEGORIES'] = '\OCA\Contacts\VObject\GroupProperty';
|
2015-09-09 16:27:53 +02:00
|
|
|
|
|
|
|
\OC_App::loadApp('my_app');
|