HI,
I am unit testing a login function with <testAction> like so:
function testValidLogin(){
$data = array(
'User' => array(
'username' => 'usrname',
'balfoomuh' => 'apassword123'
)
);
$result = $this->testAction(
'/users/login',
array(
'fixturize' => false,
'data' => $data,
'return' => 'vars',
'method' => 'post'
)
);
}
in the login function I get for $this->data:
Array
(
[User] => Array
(
[username] => usrname
[balfoomuh] => apassword123
[blafoomuh] =>
)
)
and can't login correctly (get the proper redirect url);
Most probably it is because blafoomuh is my password field with the
Auth component any ideas why this is so and what to do to avoid that?
thx
Juergen
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---