2013-08-20 03:32:36 +02:00
|
|
|
<?php
|
|
|
|
|
2013-09-16 21:29:33 +02:00
|
|
|
if(!defined('PHPUNIT_RUN')) {
|
|
|
|
define('PHPUNIT_RUN', 1);
|
|
|
|
}
|
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');
|
|
|
|
}
|
|
|
|
|
2015-02-16 18:42:41 +01:00
|
|
|
include_once('lib/testcase.php');
|
|
|
|
|
2013-08-20 03:32:36 +02:00
|
|
|
OC_Hook::clear();
|
2013-08-26 20:10:29 +02:00
|
|
|
OC_Log::$enabled = true;
|
2014-09-06 17:27:13 +02:00
|
|
|
\OCP\Util::connectHook('OCA\Contacts', 'pre_deleteContact', '\OCA\Contacts\Hooks', 'contactDeletion');
|
|
|
|
|
2015-05-08 11:36:18 +02:00
|
|
|
\Sabre\VObject\Component\VCard::$componentMap['VCARD'] = '\OCA\Contacts\VObject\VCard';
|
|
|
|
\Sabre\VObject\Component\VCard::$propertyMap['CATEGORIES'] = '\OCA\Contacts\VObject\GroupProperty';
|
|
|
|
|