Exemplo n.º 1
0
 public function testInvalidForm()
 {
     $inputValues = array('firstname' => '', 'lastname' => '', 'email' => 'testexample.com', 'admin' => '');
     $this->form->setDefinedWritableValues($inputValues);
     $this->form->validate();
     $this->assertTrue($this->form->hasErrors());
     $this->assertCount(3, $this->form->getErrors());
 }