PHP Класс RedUNIT\Base\Bean

One of the core test suites of RedBeanPHP, tests the bean interface and all basic bean functions, including deletion, updating, inserting, importing and more...
Автор: Gabor de Mooij and the RedBeanPHP Community
Наследование: extends RedUNIT\Base
Показать файл Открыть проект

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

Метод Описание
testAccessingTainting ( ) : void Test whether the tainted flag gets set correctly.
testBeanTainting ( ) : void Only fire update query if the bean really contains different values. But make sure beans several 'parents' away still get saved.
testBeau ( ) : void Test beautification conflicts.
testCANTDeleteAliasedOwnListWithFalse ( ) : void You cannot delete an aliased own-list by assigning FALSE.
testCANTDeleteAliasedOwnListWithNULL ( ) : void You cannot delete an aliased own-list by assigning NULL.
testCANTDeleteAliasedOwnListWithUnset ( ) : void You cannot delete an aliased own-list by unsetting it.
testCANTDeleteOwnListWithFalse ( ) : void You cannot delete an own-list by assigning FALSE.
testCANTDeleteOwnListWithNULL ( ) : void You cannot delete an own-list by assigning NULL.
testCANTDeleteOwnListWithUnset ( ) You cannot delete an own-list by unsetting it.
testCANTDeleteSharedListWithFalse ( ) : void You cannot delete a shared-list by assigning FALSE.
testCANTDeleteSharedListWithNULL ( ) : void You cannot delete a shared list by assigning NULL.
testCANTDeleteSharedWithUnset ( ) : void You cannot delete a shared-list by unsetting it.
testCANTDeleteViaSharedListWithFalse ( ) : void You cannot delete a shared list by assigning FALSE.
testCANTDeleteViaSharedListWithNULL ( ) : void You cannot delete a shared-list by assigning NULL.
testCANTDeleteViaSharedWithUnset ( ) : void You cannot delete a shared-list by unsetting it.
testCANTDeleteXOwnListWithFalse ( ) : void You cannot delete an x-own-list by assigning FALSE.
testCANTDeleteXOwnListWithNULL ( ) : void You cannot delete an x-own-list by assigning NULL.
testCANTDeleteXOwnListWithUnset ( ) : void You cannot delete an x-own-list by unsetting it.
testDeleteAliasedOwnListWithEmptyArray ( ) : void You CAN delete an aliased own-list by assiging an empty array.
testDeleteByIDs ( ) : void Can we delete a bean in a list by its ID? Only the UNSET() variant should work.
testDeleteOwnListWithEmptyArray ( ) : void You CAN delete an own-list by assiging an empty array.
testDeleteSharedListWithEmptyArray ( ) : void You CAN delete a shared-list by assiging an empty array.
testDeleteViaSharedListWithEmptyArray ( ) : void You CAN delete a shared-list by assiging an empty array.
testDeleteXOwnListWithEmptyArray ( ) : void You CAN delete an x-own-list by assiging an empty array.
testImportFromAndSetProp ( ) : void Tests effects of importFrom and setProperty.
testImportMeta ( ) Tests whether we can send results of a query to meta data when converting to bean.
testMisc ( ) Other tests.
testUnsettingAListAndShadow ( ) : void Tests the effects of unsetting on the shadow of a list.
testUpdateQueries ( ) : void Test whether the number of update queries executed is limited to the ones that are absolutely necessary to sync the database.
testWhetherWeCanAddToLists ( ) * Can we add a bean to a list?
testYouCANDeleteAliasedParentBeanWithFALSE ( ) : void You cannot delete an aliased parent bean by setting it to FALSE.
testYouCANDeleteAliasedParentBeanWithNULL ( ) : void You CAN delete an aliased parent bean by setting it to NULL.
testYouCANDeleteParentBeanWithFALSE ( ) : void You CAN delete a parent bean by setting it to FALSE.
testYouCANDeleteParentBeanWithNULL ( ) : void You cannot delete a parent bean by setting it to NULL.
testYouCANTDeleteAliasedParentBeanWithUnset ( ) : void You cannot delete an aliased parent bean by unsetting it.
testYouCANTDeleteParentBeanWithUnset ( ) : void You cannot delete a parent bean by unsetting it.

Приватные методы

Метод Описание
_createBook ( ) : void Setup

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

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

Test whether the tainted flag gets set correctly.
public testAccessingTainting ( ) : void
Результат void

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

Only fire update query if the bean really contains different values. But make sure beans several 'parents' away still get saved.
public testBeanTainting ( ) : void
Результат void

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

.. Issue #418
public testBeau ( ) : void
Результат void

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

You cannot delete an aliased own-list by assigning FALSE.
public testCANTDeleteAliasedOwnListWithFalse ( ) : void
Результат void

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

You cannot delete an aliased own-list by assigning NULL.
public testCANTDeleteAliasedOwnListWithNULL ( ) : void
Результат void

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

You cannot delete an aliased own-list by unsetting it.
public testCANTDeleteAliasedOwnListWithUnset ( ) : void
Результат void

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

You cannot delete an own-list by assigning FALSE.
public testCANTDeleteOwnListWithFalse ( ) : void
Результат void

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

You cannot delete an own-list by assigning NULL.
public testCANTDeleteOwnListWithNULL ( ) : void
Результат void

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

You cannot delete an own-list by unsetting it.

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

You cannot delete a shared-list by assigning FALSE.
public testCANTDeleteSharedListWithFalse ( ) : void
Результат void

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

You cannot delete a shared list by assigning NULL.
public testCANTDeleteSharedListWithNULL ( ) : void
Результат void

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

You cannot delete a shared-list by unsetting it.
public testCANTDeleteSharedWithUnset ( ) : void
Результат void

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

You cannot delete a shared list by assigning FALSE.
public testCANTDeleteViaSharedListWithFalse ( ) : void
Результат void

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

You cannot delete a shared-list by assigning NULL.
public testCANTDeleteViaSharedListWithNULL ( ) : void
Результат void

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

You cannot delete a shared-list by unsetting it.
public testCANTDeleteViaSharedWithUnset ( ) : void
Результат void

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

You cannot delete an x-own-list by assigning FALSE.
public testCANTDeleteXOwnListWithFalse ( ) : void
Результат void

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

You cannot delete an x-own-list by assigning NULL.
public testCANTDeleteXOwnListWithNULL ( ) : void
Результат void

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

You cannot delete an x-own-list by unsetting it.
public testCANTDeleteXOwnListWithUnset ( ) : void
Результат void

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

You CAN delete an aliased own-list by assiging an empty array.
public testDeleteAliasedOwnListWithEmptyArray ( ) : void
Результат void

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

Can we delete a bean in a list by its ID? Only the UNSET() variant should work.
public testDeleteByIDs ( ) : void
Результат void

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

You CAN delete an own-list by assiging an empty array.
public testDeleteOwnListWithEmptyArray ( ) : void
Результат void

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

You CAN delete a shared-list by assiging an empty array.
public testDeleteSharedListWithEmptyArray ( ) : void
Результат void

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

You CAN delete a shared-list by assiging an empty array.
public testDeleteViaSharedListWithEmptyArray ( ) : void
Результат void

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

You CAN delete an x-own-list by assiging an empty array.
public testDeleteXOwnListWithEmptyArray ( ) : void
Результат void

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

Tests effects of importFrom and setProperty.
public testImportFromAndSetProp ( ) : void
Результат void

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

Tests whether we can send results of a query to meta data when converting to bean.
public testImportMeta ( )

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

..
public testMisc ( )

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

Tests the effects of unsetting on the shadow of a list.
public testUnsettingAListAndShadow ( ) : void
Результат void

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

Test whether the number of update queries executed is limited to the ones that are absolutely necessary to sync the database.
public testUpdateQueries ( ) : void
Результат void

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

* Can we add a bean to a list?

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

You cannot delete an aliased parent bean by setting it to FALSE.
public testYouCANDeleteAliasedParentBeanWithFALSE ( ) : void
Результат void

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

You CAN delete an aliased parent bean by setting it to NULL.
public testYouCANDeleteAliasedParentBeanWithNULL ( ) : void
Результат void

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

You CAN delete a parent bean by setting it to FALSE.
public testYouCANDeleteParentBeanWithFALSE ( ) : void
Результат void

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

You cannot delete a parent bean by setting it to NULL.
public testYouCANDeleteParentBeanWithNULL ( ) : void
Результат void

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

You cannot delete an aliased parent bean by unsetting it.
public testYouCANTDeleteAliasedParentBeanWithUnset ( ) : void
Результат void

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

You cannot delete a parent bean by unsetting it.
public testYouCANTDeleteParentBeanWithUnset ( ) : void
Результат void