PHP Class lithium\tests\cases\security\auth\adapter\FormTest

Inheritance: extends lithium\test\Unit
Datei anzeigen Open project: unionofrad/lithium

Public Methods

Method Description
first ( array $options = [] )
meta ( $key )
testDefaultValidator ( )
testGenericFilter ( )
testGenericValidator ( )
testHashedPasswordAuth ( ) Tests that the Form adapter can be configured to do simple hash-based password authentication.
testLogin ( ) Tests a simple user lookup. Note that we're not using the password validator; due to the limitations of this classes first() mock method, password will not be in the dataset returned by Form::check().
testLoginWithArray ( ) Tests that attempted exploitation via malformed credential submission is not possible.
testLoginWithFilters ( )
testMixedFieldMapping ( ) Tests configuration of the 'fields' setting where some form fields are mapped directly to database fields (i.e. array('field')) and some are mapped manually (i.e.
testModel ( ) Tests a check for the model class prior to attempted use.
testOmitValidatedParams ( ) Tests that parameters with validators are omitted from query conditions.
testParameterValidators ( ) Tests that parameter validators are correctly applied to form data after the authentication query has occurred.
testParameterValidatorsFail ( )
testSetPassthru ( ) Tests that Form::set() passes data through unmodified, even with invalid options.
testUncallableFilter ( )
testUncallableGenericFilter ( )
testUncallableGenericValidator ( )
testUncallableValidator ( )
testValidatorWithFieldMapping ( )
validatorFieldMappingTest ( array $options = [] ) : object Used by testValidatorWithFieldMapping and makes sure that the custom password field name isn't sent in the query
validatorTest ( array $options = [] )

Method Details

first() public static method

public static first ( array $options = [] )
$options array

meta() public static method

public static meta ( $key )

testDefaultValidator() public method

testGenericFilter() public method

public testGenericFilter ( )

testGenericValidator() public method

testHashedPasswordAuth() public method

Tests that the Form adapter can be configured to do simple hash-based password authentication.

testLogin() public method

Tests a simple user lookup. Note that we're not using the password validator; due to the limitations of this classes first() mock method, password will not be in the dataset returned by Form::check().
public testLogin ( )

testLoginWithArray() public method

Tests that attempted exploitation via malformed credential submission is not possible.
public testLoginWithArray ( )

testLoginWithFilters() public method

testMixedFieldMapping() public method

array('form_field' => 'database_field')) in a single mixed array.

testModel() public method

Tests a check for the model class prior to attempted use.
public testModel ( )

testOmitValidatedParams() public method

Tests that parameters with validators are omitted from query conditions.

testParameterValidators() public method

Tests that parameter validators are correctly applied to form data after the authentication query has occurred.

testParameterValidatorsFail() public method

testSetPassthru() public method

Tests that Form::set() passes data through unmodified, even with invalid options.
public testSetPassthru ( )

testUncallableFilter() public method

testUncallableGenericFilter() public method

testUncallableGenericValidator() public method

testUncallableValidator() public method

testValidatorWithFieldMapping() public method

validatorFieldMappingTest() public static method

Used by testValidatorWithFieldMapping and makes sure that the custom password field name isn't sent in the query
public static validatorFieldMappingTest ( array $options = [] ) : object
$options array
return object

validatorTest() public static method

public static validatorTest ( array $options = [] )
$options array