PHP Class RedUNIT\Blackhole\Toolbox

The Toolbox acts as a kind of micro service locator. The toolbox is passed around by RedBeanPHP core objects to share services. It contains an adapter, a query writer and the RedBeanPHP Object Database object (OODB). This test suite focuses on the toolbox.
Author: Gabor de Mooij and the RedBeanPHP Community
Inheritance: extends RedUNIT\Blackhole
Show file Open project: gabordemooij/redbean

Public Methods

Method Description
testCanWeObtainToolbox ( ) : void Test whether we can obtain a toolbox properly.
testDatabaseCheck ( ) : void Tests the hasDatabase() method.
testDoesToolboxContainTheTools ( ) : void Does the toolbox contain the necessary tools ?
testInvalidDB ( ) : void Github issue #458, selectDatabase causes PHP notice undefined index if database key not found.
testRepoSwitching ( ) : void Tests whether freeze() switches the repository object as it is supposed to do.

Method Details

testCanWeObtainToolbox() public method

Test whether we can obtain a toolbox properly.
public testCanWeObtainToolbox ( ) : void
return void

testDatabaseCheck() public method

Tests the hasDatabase() method.
public testDatabaseCheck ( ) : void
return void

testDoesToolboxContainTheTools() public method

Does the toolbox contain the necessary tools ?

testInvalidDB() public method

Github issue #458, selectDatabase causes PHP notice undefined index if database key not found.
public testInvalidDB ( ) : void
return void

testRepoSwitching() public method

Tests whether freeze() switches the repository object as it is supposed to do.
public testRepoSwitching ( ) : void
return void