PHP Class RedUNIT\Base\Aliasing

Tests aliasing functionality, i.e. fetching beans as, inferring correct type and retrieving lists as alias.
Author: Gabor de Mooij and the RedBeanPHP Community
Inheritance: extends RedUNIT\Base
Show file Open project: gabordemooij/redbean

Public Methods

Method Description
basic ( ) : void Test for quick detect change.
canSwitchParentBean ( ) : void Can switch fetchAs().
clearStateAdditionalTests ( ) : void Describing how clearing state of bean works.
testAliasSwitch ( ) : void Test switching alias (also issue #291).
testAliasWithBeautify ( ) : void Tests whether aliasing plays nice with beautification.
testAliasedFinder ( ) : void Finding $person beans that have been aliased into various roles
testAssociated ( ) : void Associating two beans, then loading the associated bean
testAutoResolver ( ) : void Tests automatic resolvement of parent beans without fetchAs() using inferFetchType (foreign keys).
testBasicFetchAs ( ) Test Basic Fetch AS functionality.
testBasicListVariations ( ) : void Test Basic list variations.
testFetchTypeConfusionIssue291 ( ) : void Issue 291. State not cleared.
testIssueAliasingForLTSVersion ( ) : void Test for aliasing issue for LTS version.
testShadow ( ) : void Switching aliases (->alias) should not change other list during storage.

Method Details

basic() public method

Test for quick detect change.
public basic ( ) : void
return void

canSwitchParentBean() public method

Also checks shadow by storing.
public canSwitchParentBean ( ) : void
return void

clearStateAdditionalTests() public method

Every method returning somthing (except getID) clears prefix-method-state (anything set by withCond,with,alias,fetchAs).
public clearStateAdditionalTests ( ) : void
return void

testAliasSwitch() public method

Test switching alias (also issue #291).
public testAliasSwitch ( ) : void
return void

testAliasWithBeautify() public method

Ensure that aliased column aren't beautified
public testAliasWithBeautify ( ) : void
return void

testAliasedFinder() public method

Finding $person beans that have been aliased into various roles
public testAliasedFinder ( ) : void
return void

testAssociated() public method

Associating two beans, then loading the associated bean
public testAssociated ( ) : void
return void

testAutoResolver() public method

Tests automatic resolvement of parent beans without fetchAs() using inferFetchType (foreign keys).
public testAutoResolver ( ) : void
return void

testBasicFetchAs() public method

Test Basic Fetch AS functionality.
public testBasicFetchAs ( )

testBasicListVariations() public method

Test Basic list variations.
public testBasicListVariations ( ) : void
return void

testFetchTypeConfusionIssue291() public method

Issue 291. State not cleared.

testIssueAliasingForLTSVersion() public method

Test for aliasing issue for LTS version.

testShadow() public method

Switching aliases (->alias) should not change other list during storage.
public testShadow ( ) : void
return void