示例#1
0
 /**
  * @test
  */
 public function getTaskReturnsNull()
 {
     $this->assertNull($this->subject->getTask());
 }
示例#2
0
 /**
  * Adds a log entry to the database
  *
  * @param   string  $action
  * @param   string  $comment
  *
  * @throws  Exception
  */
 private function addLog($action, $comment = NULL)
 {
     if ($this->isAuthenticated()) {
         $userId = $this->getAuthenticatedUser()->getId();
     } else {
         $userId = NULL;
     }
     $log = Model\Log::createLog($userId, $action, $comment, $_SERVER['REMOTE_ADDR']);
     $this->database->addLog($log);
 }