PHP Class RedUNIT\Base\Relations

Tests whether RedBeanPHP handles relational data properly. This test suite is quite large because it tests various types of relations as well as simple and complex usage scenarios.
Author: Gabor de Mooij and the RedBeanPHP Community
Inheritance: extends RedUNIT\Base
Afficher le fichier Open project: gabordemooij/redbean

Méthodes publiques

Méthode Description
testAllPrefix ( ) : void Test whether ->all() reloads a list.
testAssociationRenaming ( ) : void test emulation via association renaming
testCamelCasingVia ( ) : void Tests whether via() applies camelcase-to-snakecase conversion. Although most of the time you do not need this since via() is meant to remap typical link tables to bean - but alas.
testConfusionWithXOwnList ( ) : void Test whether you can still set items starting with 'xown' or 'own' not followed by an uppercase character.
testCountingAndAliasing ( ) : void Test counting and aliasing.
testCreationOfLinkTable ( ) : void Test creation of link table.
testDontSaveParentIfNotTainted ( ) : void Test whether untainted parent bean dont get saved.
testDontTryToStoreOtherThingsInSharedList ( ) : void Test don't try to store other things in shared list.
testDuplicateFK ( ) Test whether we can't add more than one FK.
testFastTrackRelations ( ) : void Fast track link block code should not affect self-referential N-M relations.
testIssue348 ( ) : void Issue #348 via() should reload shared list
testListAddDelete ( ) : void Test list add and delete.
testListBeautifications ( ) : void Test list beautifications.
testModeCheckerOfLists ( ) : void Test whether we can determine the mode of a list.
testNMRelationsIntermediate ( ) : void test N-M relations through intermediate beans
testParentBean ( ) : void Test parent bean relations.
testRelatedCountVia ( ) : void Test related count using via().
testRelationsAndConditions ( ) : void Test Relations and conditions.
testScenarios ( ) : void Test basic and complex common usage scenarios for relations and associations.
testSharedLinkCond ( ) : void Test filtering relations on links (using columns in the link table).
testSharedListIntermediate ( ) : void test emulation of sharedList through intermediate beans
testVia ( ) : void Test via.
testWhetherIssetWorksWithXList ( ) : void Test whether magic array interface functions like isset() and unset work correctly with the x-own-list and the List-suffix.

Method Details

testAllPrefix() public méthode

Test whether ->all() reloads a list.
public testAllPrefix ( ) : void
Résultat void

testAssociationRenaming() public méthode

test emulation via association renaming
public testAssociationRenaming ( ) : void
Résultat void

testCamelCasingVia() public méthode

Tests whether via() applies camelcase-to-snakecase conversion. Although most of the time you do not need this since via() is meant to remap typical link tables to bean - but alas.
public testCamelCasingVia ( ) : void
Résultat void

testConfusionWithXOwnList() public méthode

Test whether you can still set items starting with 'xown' or 'own' not followed by an uppercase character.
public testConfusionWithXOwnList ( ) : void
Résultat void

testCountingAndAliasing() public méthode

Test counting and aliasing.
public testCountingAndAliasing ( ) : void
Résultat void

testCreationOfLinkTable() public méthode

Test creation of link table.
public testCreationOfLinkTable ( ) : void
Résultat void

testDontSaveParentIfNotTainted() public méthode

Test whether untainted parent bean dont get saved.
public testDontSaveParentIfNotTainted ( ) : void
Résultat void

testDontTryToStoreOtherThingsInSharedList() public méthode

Test don't try to store other things in shared list.

testDuplicateFK() public méthode

Test whether we can't add more than one FK.
public testDuplicateFK ( )

testFastTrackRelations() public méthode

Fast track link block code should not affect self-referential N-M relations.
public testFastTrackRelations ( ) : void
Résultat void

testIssue348() public méthode

Issue #348 via() should reload shared list
public testIssue348 ( ) : void
Résultat void

testListAddDelete() public méthode

Test list add and delete.
public testListAddDelete ( ) : void
Résultat void

testListBeautifications() public méthode

Test list beautifications.
public testListBeautifications ( ) : void
Résultat void

testModeCheckerOfLists() public méthode

Test whether we can determine the mode of a list.
public testModeCheckerOfLists ( ) : void
Résultat void

testNMRelationsIntermediate() public méthode

test N-M relations through intermediate beans
public testNMRelationsIntermediate ( ) : void
Résultat void

testParentBean() public méthode

Test parent bean relations.
public testParentBean ( ) : void
Résultat void

testRelatedCountVia() public méthode

Test related count using via().
public testRelatedCountVia ( ) : void
Résultat void

testRelationsAndConditions() public méthode

Test Relations and conditions.
public testRelationsAndConditions ( ) : void
Résultat void

testScenarios() public méthode

Test basic and complex common usage scenarios for relations and associations.
public testScenarios ( ) : void
Résultat void

testSharedLinkCond() public méthode

Test filtering relations on links (using columns in the link table).
public testSharedLinkCond ( ) : void
Résultat void

testSharedListIntermediate() public méthode

test emulation of sharedList through intermediate beans
public testSharedListIntermediate ( ) : void
Résultat void

testVia() public méthode

Test via.
public testVia ( ) : void
Résultat void

testWhetherIssetWorksWithXList() public méthode

Array functions do not reveal x-own-lists and list-alias because you dont want duplicate entries in foreach-loops. Also offers a slight performance improvement for array access.
public testWhetherIssetWorksWithXList ( ) : void
Résultat void