| Conditions | 2 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | public function testMyForm() |
||
| 21 | { |
||
| 22 | |||
| 23 | $this->get("user-registration/"); |
||
| 24 | |||
| 25 | $this->submitForm("SignUpForm", "action_doSubmit", array("FirstName" => "John", |
||
| 26 | "Password[_Password]" => "admin", |
||
| 27 | "Password[_ConfirmPassword]" => "admin", "Email" => "[email protected]")); |
||
| 28 | |||
| 29 | $this->assertEquals( |
||
| 30 | 1, |
||
| 31 | Member::get()->filter("Email", "[email protected]")->count() > 0 ? 1 : 0, |
||
| 32 | 'testMyForm() returns the user email' |
||
| 33 | ); |
||
| 36 |