PHP 클래스 lithium\tests\cases\security\auth\adapter\FormTest

상속: extends lithium\test\Unit
파일 보기 프로젝트 열기: unionofrad/lithium

공개 메소드들

메소드 설명
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 = [] )

메소드 상세

first() 공개 정적인 메소드

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

meta() 공개 정적인 메소드

public static meta ( $key )

testDefaultValidator() 공개 메소드

testGenericFilter() 공개 메소드

public 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().
public testLogin ( )

testLoginWithArray() 공개 메소드

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

testLoginWithFilters() 공개 메소드

testMixedFieldMapping() 공개 메소드

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

testModel() 공개 메소드

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

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.
public testSetPassthru ( )

testUncallableFilter() 공개 메소드

testUncallableGenericFilter() 공개 메소드

testUncallableGenericValidator() 공개 메소드

testUncallableValidator() 공개 메소드

testValidatorWithFieldMapping() 공개 메소드

validatorFieldMappingTest() 공개 정적인 메소드

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
리턴 object

validatorTest() 공개 정적인 메소드

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