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
Post a Comment