mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-01-30 19:52:17 +01:00
Connect pre_deleteContact when unit tests are run
This commit is contained in:
parent
40c3594c22
commit
79bc4679de
@ -6,8 +6,7 @@ $RUNTIME_NOAPPS = true;
|
||||
if(!defined('PHPUNIT_RUN')) {
|
||||
define('PHPUNIT_RUN', 1);
|
||||
}
|
||||
|
||||
require_once __DIR__.'/../../core/lib/base.php';
|
||||
require_once __DIR__.'/../../../lib/base.php';
|
||||
|
||||
if(!class_exists('PHPUnit_Framework_TestCase')) {
|
||||
require_once('PHPUnit/Autoload.php');
|
||||
@ -17,3 +16,5 @@ if(!class_exists('PHPUnit_Framework_TestCase')) {
|
||||
|
||||
OC_Hook::clear();
|
||||
OC_Log::$enabled = true;
|
||||
\OCP\Util::connectHook('OCA\Contacts', 'pre_deleteContact', '\OCA\Contacts\Hooks', 'contactDeletion');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user