public function testLoggingLevelNotExist()
 {
     $mock = $this->getMock('Elgg_PluginHooksService', array('trigger'));
     $mock->expects($this->never())->method('trigger');
     $logger = new Elgg_Logger($mock);
     $this->assertFalse($logger->log("hello", 123));
 }
 /**
  * Invalidate the query cache
  *
  * @return void
  */
 protected function invalidateQueryCache()
 {
     if ($this->queryCache) {
         $this->queryCache->clear();
         $this->logger->log("Query cache invalidated", Elgg_Logger::INFO);
     }
 }