PHP Класс 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.
Автор: Gabor de Mooij and the RedBeanPHP Community
Наследование: extends RedUNIT\Base
Показать файл Открыть проект

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

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

Описание методов

testAllPrefix() публичный Метод

Test whether ->all() reloads a list.
public testAllPrefix ( ) : void
Результат void

testAssociationRenaming() публичный Метод

test emulation via association renaming
public testAssociationRenaming ( ) : void
Результат void

testCamelCasingVia() публичный Метод

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
Результат void

testConfusionWithXOwnList() публичный Метод

Test whether you can still set items starting with 'xown' or 'own' not followed by an uppercase character.
public testConfusionWithXOwnList ( ) : void
Результат void

testCountingAndAliasing() публичный Метод

Test counting and aliasing.
public testCountingAndAliasing ( ) : void
Результат void

testCreationOfLinkTable() публичный Метод

Test creation of link table.
public testCreationOfLinkTable ( ) : void
Результат void

testDontSaveParentIfNotTainted() публичный Метод

Test whether untainted parent bean dont get saved.
public testDontSaveParentIfNotTainted ( ) : void
Результат void

testDontTryToStoreOtherThingsInSharedList() публичный Метод

Test don't try to store other things in shared list.
public testDontTryToStoreOtherThingsInSharedList ( ) : void
Результат void

testDuplicateFK() публичный Метод

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

testFastTrackRelations() публичный Метод

Fast track link block code should not affect self-referential N-M relations.
public testFastTrackRelations ( ) : void
Результат void

testIssue348() публичный Метод

Issue #348 via() should reload shared list
public testIssue348 ( ) : void
Результат void

testListAddDelete() публичный Метод

Test list add and delete.
public testListAddDelete ( ) : void
Результат void

testListBeautifications() публичный Метод

Test list beautifications.
public testListBeautifications ( ) : void
Результат void

testModeCheckerOfLists() публичный Метод

Test whether we can determine the mode of a list.
public testModeCheckerOfLists ( ) : void
Результат void

testNMRelationsIntermediate() публичный Метод

test N-M relations through intermediate beans
public testNMRelationsIntermediate ( ) : void
Результат void

testParentBean() публичный Метод

Test parent bean relations.
public testParentBean ( ) : void
Результат void

testRelatedCountVia() публичный Метод

Test related count using via().
public testRelatedCountVia ( ) : void
Результат void

testRelationsAndConditions() публичный Метод

Test Relations and conditions.
public testRelationsAndConditions ( ) : void
Результат void

testScenarios() публичный Метод

Test basic and complex common usage scenarios for relations and associations.
public testScenarios ( ) : void
Результат void

testSharedLinkCond() публичный Метод

Test filtering relations on links (using columns in the link table).
public testSharedLinkCond ( ) : void
Результат void

testSharedListIntermediate() публичный Метод

test emulation of sharedList through intermediate beans
public testSharedListIntermediate ( ) : void
Результат void

testVia() публичный Метод

Test via.
public testVia ( ) : void
Результат void

testWhetherIssetWorksWithXList() публичный Метод

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
Результат void