Como posso testar uma função Add no CakePHP2.0

Foi-me dito que temos que testar também as funções criadas pelo Cake como adicionar / excluir ...

Se eu tenho uma função como esta, como posso testá-la se ela não tiver nenhum retorno, redirecionamento ou mesmo uma visualização? (eu uso o ajax para executá-lo)

<code>public function add() {
        if ($this->request->is('post')) {
            $this->Comment->create();
            if ($this->Comment->save($this->request->data)) {
                $this->Session->setFlash(__('The comment has been saved'));
            } else {                
                $this->Session->setFlash(__('The comment could not be saved. Please, try again.'));
            }
        }
    }
</code>

obrigado

questionAnswers(2)

yourAnswerToTheQuestion