Hi all
I'm quite baffled that SimpleTest (which is used to do web testing in
CakePHP, as we all know) doesn't check whether a link really exists,
when using clickLink(...)?! It silently does nothing, when it doesn't
exist.
This looks really odd to me... Do you all agree with me, or am I
missing an important point?
However, I've added a method that does what I need:
function assertAndClickLink($link) {
$this->assertLink($link);
$this->clickLink($link);
}
But IMHO this should already be done by the original clickLink(...)
method...
I'm also adding such helper methods for submit buttons, input fields
and stuff... Am I on the right track, or do I miss an important point?
What's your opinion? :-)
Thanks for your thoughts
Josh
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en