protected function getLoggerInstance() { $mock = $this->getMock('\\Elgg\\PluginHooksService', array('trigger')); $mock->expects($this->never())->method('trigger'); $sp = _elgg_services(); return new \Elgg\Logger($mock, $sp->config, $sp->context); }