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

Inheritance: extends Tools\TestSuite\TestCase
Show file Open project: dereuromark/cakephp-tools

Public Properties

Property Type Description
$Users TestApp\Model\Table\ToolsUsersTable
$fixtures array

Public Methods

Method 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 method

SetUp method
public setUp ( ) : void
return void

tearDown() public method

public tearDown ( )

testBlowfish() public method

PasswordableBehaviorTest::testBlowfish()
public testBlowfish ( ) : void
return void

testDifferentFieldNames() public method

Test aliases for field names
public testDifferentFieldNames ( ) : void
return void

testNeedsPasswordRehash() public method

Tests needsPasswordRehash()
public testNeedsPasswordRehash ( ) : void
return void

testNeedsPasswordRehashWithNotSupportedHasher() public method

Tests needsPasswordRehash()

testNotSame() public method

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

testNotSameWithoutCurrentField() public method

Assert that allowSame false does not allow storing the same password as previously entered

testPatchWithFieldList() public method

public testPatchWithFieldList ( ) : void
return void

testPatchWithoutFieldList() public method

public testPatchWithoutFieldList ( ) : void
return void

testRequireFalse() public method

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

testSaveWithValidateFalse() public method

Test that validate false also works.
public testSaveWithValidateFalse ( ) : void
return void

testSettings() public method

PasswordableBehaviorTest::testSettings()
public testSettings ( ) : void
return void

testValidate() public method

Make sure validation is triggered correctly
public testValidate ( ) : void
return void

testValidateCurrent() public method

..
public testValidateCurrent ( ) : void
return void

testValidateCustomRule() public method

PasswordableBehaviorTest::testValidateCustomRule()
public testValidateCustomRule ( ) : void
return void

testValidateEmptyWithCurrentPassword() public method

PasswordableBehaviorTest::testValidateEmptyWithCurrentPassword()

testValidateNoConfirm() public method

Test that confirm false does not require confirmation
public testValidateNoConfirm ( ) : void
return void

testValidateNotRequired() public method

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

testValidateRequired() public method

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

Property Details

$Users public property

public ToolsUsersTable,TestApp\Model\Table $Users
return TestApp\Model\Table\ToolsUsersTable

$fixtures public property

public array $fixtures
return array