PHP Класс RedUNIT\Base\With

With/WithCondition can be used to fetch bean lists with additional requirements, filters or ordering specification using SQL snippets. This suite tests the handling of with() and withCondition() snippets. Additionally this test suite also tests noLoad() and all() modifiers.
Автор: Gabor de Mooij and the RedBeanPHP Community
Наследование: extends RedUNIT\Base
Показать файл Открыть проект

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

Метод Описание
getTargetDrivers ( ) : array This test suite uses specific SQL, only suited for MySQL.
testAll ( ) : void Test all().
testClearanceOfModFlags ( ) : void Tests whether modifiers are cleared after reading or writing a bean property.
testEmbeddedSQL ( ) : void Test embedded SQL snippets using with and withCondition.
testEmbeddedSQLPart2 ( ) : void More variations.
testNoLoad ( ) : void Tests no-load modifier for lists.
testWhenToReload ( ) : void Test when to reload and when to NOT reload beans.

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

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

This test suite uses specific SQL, only suited for MySQL.
public getTargetDrivers ( ) : array
Результат array

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

Test all().
public testAll ( ) : void
Результат void

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

Tests whether modifiers are cleared after reading or writing a bean property.
public testClearanceOfModFlags ( ) : void
Результат void

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

Test embedded SQL snippets using with and withCondition.
public testEmbeddedSQL ( ) : void
Результат void

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

..
public testEmbeddedSQLPart2 ( ) : void
Результат void

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

Tests no-load modifier for lists.
public testNoLoad ( ) : void
Результат void

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

Use UNSET to reload a parent bean. Use UNSET or a modifier (with, withCondition, all) to reload a list. Use noLoad() to obtain an empty list - does not reload but sets an empty array.
public testWhenToReload ( ) : void
Результат void