silverstripe/sapphire — pull request #353 by halkyon (2012-04-19 23:21:33+00:00)
Title: Fixing tests

`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