php - How can I assert the content of Flash messages in phpunit tests? -


any idea on how can test cakephp controller flash message content in phpunit testing? need test this:

if ($var == "yes") {    //do } else {             $this->flash->error(__('invalid username or password, try again;)); } 


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

nginx - phpPgAdmin - log in works but I have to login again after clicking on any links -