PHP Class Tools\Test\TestCase\Model\Behavior\PasswordableBehaviorTest

Inheritance: extends Tools\TestSuite\TestCase
Afficher le fichier Open project: dereuromark/cakephp-tools

Méthodes publiques

Свойство Type Description
$Users TestApp\Model\Table\ToolsUsersTable
$fixtures array

Méthodes publiques

Méthode Description
setUp ( ) : void SetUp method
tearDown ( )
testBlowfish ( ) : void PasswordableBehaviorTest::testBlowfish()
testDifferentFieldNames ( ) : void Test aliases for field names
testNeedsPasswordRehash ( ) : void Tests needsPasswordRehash()
testNeedsPasswordRehashWithNotSupportedHasher ( ) : void Tests needsPasswordRehash()
testNotSame ( ) : void Assert that allowSame false does not allow storing the same password as previously entered
testNotSameWithoutCurrentField ( ) : void Assert that allowSame false does not allow storing the same password as previously entered
testPatchWithFieldList ( ) : void
testPatchWithoutFieldList ( ) : void
testRequireFalse ( ) : void Assert that on edit it does not wrongly pass validation (require => false)
testSaveWithValidateFalse ( ) : void Test that validate false also works.
testSettings ( ) : void PasswordableBehaviorTest::testSettings()
testValidate ( ) : void Make sure validation is triggered correctly
testValidateCurrent ( ) : void Needs faking of pwd check.
testValidateCustomRule ( ) : void PasswordableBehaviorTest::testValidateCustomRule()
testValidateEmptyWithCurrentPassword ( ) : void PasswordableBehaviorTest::testValidateEmptyWithCurrentPassword()
testValidateNoConfirm ( ) : void Test that confirm false does not require confirmation
testValidateNotRequired ( ) : void Validation and update process gets skipped if no values are entered
testValidateRequired ( ) : void Trigger validation and update process if no values are entered but are required

Method Details

setUp() public méthode

SetUp method
public setUp ( ) : void
Résultat void

tearDown() public méthode

public tearDown ( )

testBlowfish() public méthode

PasswordableBehaviorTest::testBlowfish()
public testBlowfish ( ) : void
Résultat void

testDifferentFieldNames() public méthode

Test aliases for field names
public testDifferentFieldNames ( ) : void
Résultat void

testNeedsPasswordRehash() public méthode

Tests needsPasswordRehash()
public testNeedsPasswordRehash ( ) : void
Résultat void

testNeedsPasswordRehashWithNotSupportedHasher() public méthode

Tests needsPasswordRehash()

testNotSame() public méthode

Assert that allowSame false does not allow storing the same password as previously entered
public testNotSame ( ) : void
Résultat void

testNotSameWithoutCurrentField() public méthode

Assert that allowSame false does not allow storing the same password as previously entered
public testNotSameWithoutCurrentField ( ) : void
Résultat void

testPatchWithFieldList() public méthode

public testPatchWithFieldList ( ) : void
Résultat void

testPatchWithoutFieldList() public méthode

public testPatchWithoutFieldList ( ) : void
Résultat void

testRequireFalse() public méthode

Assert that on edit it does not wrongly pass validation (require => false)
public testRequireFalse ( ) : void
Résultat void

testSaveWithValidateFalse() public méthode

Test that validate false also works.
public testSaveWithValidateFalse ( ) : void
Résultat void

testSettings() public méthode

PasswordableBehaviorTest::testSettings()
public testSettings ( ) : void
Résultat void

testValidate() public méthode

Make sure validation is triggered correctly
public testValidate ( ) : void
Résultat void

testValidateCurrent() public méthode

..
public testValidateCurrent ( ) : void
Résultat void

testValidateCustomRule() public méthode

PasswordableBehaviorTest::testValidateCustomRule()
public testValidateCustomRule ( ) : void
Résultat void

testValidateEmptyWithCurrentPassword() public méthode

PasswordableBehaviorTest::testValidateEmptyWithCurrentPassword()

testValidateNoConfirm() public méthode

Test that confirm false does not require confirmation
public testValidateNoConfirm ( ) : void
Résultat void

testValidateNotRequired() public méthode

Validation and update process gets skipped if no values are entered
public testValidateNotRequired ( ) : void
Résultat void

testValidateRequired() public méthode

Trigger validation and update process if no values are entered but are required
public testValidateRequired ( ) : void
Résultat void

Property Details

$Users public_oe property

public ToolsUsersTable,TestApp\Model\Table $Users
Résultat TestApp\Model\Table\ToolsUsersTable

$fixtures public_oe property

public array $fixtures
Résultat array