PHP Класс lithium\tests\cases\security\auth\adapter\FormTest

Наследование: extends lithium\test\Unit
Показать файл Открыть проект

Открытые методы

Метод Описание
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