lithium\tests\cases\security\auth\adapter\FormTest::testMixedFieldMapping PHP Method

testMixedFieldMapping() public method

array('form_field' => 'database_field')) in a single mixed array.
    public function testMixedFieldMapping()
    {
        $subject = new Form(array('model' => __CLASS__, 'fields' => array('username' => 'name', 'group'), 'validators' => array()));
        $request = (object) array('data' => array('username' => 'Bob', 'group' => 'editors'));
        $expected = array('name' => 'Bob', 'group' => 'editors');
        $this->assertEqual($expected, $subject->check($request));
    }