PHP Class Codeception\Module\WPBootstrapperTest

Inheritance: extends Codeception\TestCase\Test
Show file Open project: lucatume/wp-browser

Protected Properties

Property Type Description
$backupGlobals
$config array
$module_container Codeception\Lib\ModuleContainer
$restorer SebastianBergmann\GlobalState\Restorer
$tester UnitTester
$wp tad\WPBrowser\Adapters\WP

Public Methods

Method Description
it_should_be_instantiatable ( )
it_should_deactivate_updates_when_bootstrapping ( )
it_should_include_the_wp_load_php_file ( )
it_should_not_include_wp_load_php_twice ( )
it_should_restore_global_state_after_first_bootstrapping ( )
it_should_throw_if_wp_load_php_is_not_in_wp_root_folder ( )
it_should_throw_if_wp_load_php_is_not_readable ( )
it_should_throw_if_wp_root_folder_is_missing ( )
it_should_throw_if_wp_root_folder_is_not_a_folder ( )
it_should_throw_if_wp_root_folder_is_not_readable ( )
it_should_unset_closures_in_global_array_when_saving_global_state ( )
it_should_unset_closures_in_nested_global_array_when_saving_global_state ( )
setUpBeforeClass ( )
set_site_transient ( $key, $value )

Protected Methods

Method Description
_after ( )
_before ( )

Private Methods

Method Description
make_instance ( )

Method Details

_after() protected method

protected _after ( )

_before() protected method

protected _before ( )

it_should_be_instantiatable() public method

it_should_deactivate_updates_when_bootstrapping() public method

it_should_include_the_wp_load_php_file() public method

it_should_not_include_wp_load_php_twice() public method

it_should_restore_global_state_after_first_bootstrapping() public method

it_should_throw_if_wp_load_php_is_not_in_wp_root_folder() public method

it_should_throw_if_wp_load_php_is_not_readable() public method

it_should_throw_if_wp_root_folder_is_missing() public method

it_should_throw_if_wp_root_folder_is_not_a_folder() public method

it_should_throw_if_wp_root_folder_is_not_readable() public method

it_should_unset_closures_in_global_array_when_saving_global_state() public method

it_should_unset_closures_in_nested_global_array_when_saving_global_state() public method

setUpBeforeClass() public static method

public static setUpBeforeClass ( )

set_site_transient() public method

public set_site_transient ( $key, $value )

Property Details

$backupGlobals protected property

protected $backupGlobals

$config protected property

protected array $config
return array

$module_container protected property

protected ModuleContainer,Codeception\Lib $module_container
return Codeception\Lib\ModuleContainer

$restorer protected property

protected Restorer,SebastianBergmann\GlobalState $restorer
return SebastianBergmann\GlobalState\Restorer

$tester protected property

protected UnitTester $tester
return UnitTester

$wp protected property

protected WP,tad\WPBrowser\Adapters $wp
return tad\WPBrowser\Adapters\WP