1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-22 11:52:18 +01:00
Lukas Reschke 6d84ceaa2f Enable app
2015-07-06 15:35:38 +02:00

22 lines
617 B
PHP

<?php
global $RUNTIME_NOAPPS;
$RUNTIME_NOAPPS = true;
if (!defined('PHPUNIT_RUN')) {
define('PHPUNIT_RUN', 1);
}
require_once __DIR__.'/../../../lib/base.php';
if(!class_exists('PHPUnit_Framework_TestCase')) {
require_once('PHPUnit/Autoload.php');
}
OC_App::enable('contacts');
OC_Hook::clear();
OC_Log::$enabled = false;
OCP\Util::connectHook('OCA\Contacts', 'pre_deleteContact', '\OCA\Contacts\Hooks', 'contactDeletion');
Sabre\VObject\Component\VCard::$componentMap['VCARD'] = '\OCA\Contacts\VObject\VCard';
Sabre\VObject\Component\VCard::$propertyMap['CATEGORIES'] = '\OCA\Contacts\VObject\GroupProperty';