1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2024-12-03 15:24:09 +01:00
OwncloudContactsOfficial/tests/bootstrap.php

21 lines
577 B
PHP
Raw Normal View History

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');
}
include_once('lib/testcase.php');
2013-08-20 03:32:36 +02:00
OC_Hook::clear();
OC_Log::$enabled = true;
\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';