/** * @test */ public function getTaskReturnsNull() { $this->assertNull($this->subject->getTask()); }
/** * 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); }