2013-08-20 03:32:36 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
global $RUNTIME_NOAPPS;
|
|
|
|
$RUNTIME_NOAPPS = true;
|
|
|
|
|
2013-09-16 21:29:33 +02:00
|
|
|
if(!defined('PHPUNIT_RUN')) {
|
|
|
|
define('PHPUNIT_RUN', 1);
|
|
|
|
}
|
2014-09-06 17:32:42 +02:00
|
|
|
require_once __DIR__.'/../../core/lib/base.php';
|
2013-08-20 03:32:36 +02:00
|
|
|
|
|
|
|
if(!class_exists('PHPUnit_Framework_TestCase')) {
|
|
|
|
require_once('PHPUnit/Autoload.php');
|
|
|
|
}
|
|
|
|
|
2013-09-16 02:24:08 +02:00
|
|
|
//OC_App::enable('contacts');
|
2013-08-26 20:10:29 +02:00
|
|
|
|
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');
|
|
|
|
|