Skip to content

Commit

Permalink
The logger is set on the cache storage, not the mongo client.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Nov 2, 2016
1 parent c166ee2 commit 69d5a1c
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions framework/Cache/test/Horde/Cache/MongoTest.php
Expand Up @@ -45,13 +45,12 @@ protected function _getCache($params = array())
$this->reason = 'MongoDB not available.';
return;
}
$this->mongo->setLogger(new Horde_Log_Logger(new Horde_Log_Handler_Cli()));
return new Horde_Cache(
new Horde_Cache_Storage_Mongo(array(
'mongo_db' => $this->mongo,
'collection' => 'horde_cache_test'
))
);
$storage = new Horde_Cache_Storage_Mongo(array(
'mongo_db' => $this->mongo,
'collection' => 'horde_cache_test'
));
$storage->setLogger(new Horde_Log_Logger(new Horde_Log_Handler_Cli()));
return new Horde_Cache($storage);
}

public function tearDown()
Expand Down

0 comments on commit 69d5a1c

Please sign in to comment.