I have a rule specifying that the user has to accept terms of use:
public function rules() {
...
array('termsAccepted', 'compare', 'compareValue'=>'1', 'on'=>'register', 'message'=>'You must accept the terms of use.'),
...
}
That rule works in my register form but not in my unit test:
Same behaviour: it works in the browser but not in the unit test.
public function rules() {
...
array('termsAccepted', 'compare', 'compareValue'=>true, 'on'=>'register', 'message'=>'You must accept the terms of use.'),
...
}