silverstripe/sapphire — pull request #356 by halkyon (2012-04-20 00:44:14+00:00)
Title: Fixing tests that use email submission

`submitForm()` used through simpletest doesn't understand HTML5 inputs like `` and results in test failures, as we recently changed EmailField to use type "email" instead of "text".

I've fixed these tests by using `post()` instead, removing the need to use simpletest in these cases.

Since we only use `submitForm()` in a handful of locations, we could probably replace these with `post()` too and remove the need to use simpletest. Opened a new ticket here: http://open.silverstripe.org/ticket/7185

EDIT: Updated this pull request to remove simpletest, and replace all uses of `submitForm()` with `post()`