Skip to content

Commit

Permalink
Kronolith_Driver#deleteEvent() requires the object manager.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Mar 4, 2016
1 parent 7286e9a commit 68aa3a6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kronolith/test/Kronolith/Autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@
require_once __DIR__ . '/Integration/Kronolith/Sql/Base.php';

/** Load stub definitions */
require_once __DIR__ . '/Stub/CalendarManager.php';
require_once __DIR__ . '/Stub/Driver.php';
require_once __DIR__ . '/Stub/Objects.php';
require_once __DIR__ . '/Stub/Registry.php';
require_once __DIR__ . '/Stub/ShareFactory.php';
require_once __DIR__ . '/Stub/Tagger.php';
require_once __DIR__ . '/Stub/Types.php';
require_once __DIR__ . '/Stub/CalendarManager.php';
8 changes: 8 additions & 0 deletions kronolith/test/Kronolith/Stub/Objects.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

class Content_Objects_Manager
{
public function delete()
{
}
}
1 change: 1 addition & 0 deletions kronolith/test/Kronolith/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ protected static function createBasicKronolithSetup(Horde_Test_Setup $setup)
'session' => 'Horde_Session',
)
);
$GLOBALS['injector']->setInstance('Content_Objects_Manager', new Content_Objects_Manager());
$GLOBALS['injector']->setInstance('Content_Tagger', new Content_Tagger());
$GLOBALS['injector']->setInstance('Content_Types_Manager', new Content_Types_Manager());
$GLOBALS['conf']['prefs']['driver'] = 'Null';
Expand Down

0 comments on commit 68aa3a6

Please sign in to comment.