PHP Class 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.
Author: Gabor de Mooij and the RedBeanPHP Community
Inheritance: extends RedUNIT\Base
Show file Open project: gabordemooij/redbean

Public Methods

Method Description
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.

Method Details

getTargetDrivers() public method

This test suite uses specific SQL, only suited for MySQL.
public getTargetDrivers ( ) : array
return array

testAll() public method

Test all().
public testAll ( ) : void
return void

testClearanceOfModFlags() public method

Tests whether modifiers are cleared after reading or writing a bean property.
public testClearanceOfModFlags ( ) : void
return void

testEmbeddedSQL() public method

Test embedded SQL snippets using with and withCondition.
public testEmbeddedSQL ( ) : void
return void

testEmbeddedSQLPart2() public method

..
public testEmbeddedSQLPart2 ( ) : void
return void

testNoLoad() public method

Tests no-load modifier for lists.
public testNoLoad ( ) : void
return void

testWhenToReload() public method

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
return void