PHP Class RedUNIT\Base\Facade

Tests the facade. The facade is a single class (often aliased with R) that provides access to all (or most) RedBeanPHP functionality without the need to interact with all the objects involved. The facade has been designed to be as 'straightfoward' as possible, many methods of the facade class should be 'almost identical' to simple calls to objects behind the facade. This test focuses on basic usage scenarios. Complex scenarios are tested in other suites because we often test 'the complete route' as the facade code path always includes the non-facade code path as well (as proven by the coverage numbers).
Author: Gabor de Mooij and the RedBeanPHP Community
Inheritance: extends RedUNIT\Base
Show file Open project: gabordemooij/redbean

Public Methods

Method Description
getTargetDrivers ( ) What drivers should be loaded for this test pack? This pack contains some SQL incomp. with OCI
testCommonUsageFacade ( ) : void Test common Facade usage scenarios.
testQuickTrash ( ) : void Tests quick trash method: R::trash( type, id ).

Method Details

getTargetDrivers() public method

What drivers should be loaded for this test pack? This pack contains some SQL incomp. with OCI
public getTargetDrivers ( )

testCommonUsageFacade() public method

Test common Facade usage scenarios.
public testCommonUsageFacade ( ) : void
return void

testQuickTrash() public method

Tests quick trash method: R::trash( type, id ).
public testQuickTrash ( ) : void
return void