Extends
lithium\test\Unit
Tests that attempted exploitation via malformed credential submission is not possible.
Source
public function testLoginWithArray() {
$subject = new Form(array(
'model' => __CLASS__,
'validators' => array('password' => false)
));
$request = (object) array('data' => array(
'username' => array('!=' => ''), 'password' => ''
));
$result = $subject->check($request);
$this->assertEqual('Array', $result['username']);
}