PHP Class Carbon_Fields_Tests_Bootstrap

Show file Open project: htmlburger/carbon-fields Class Usage Examples

Public Properties

Property Type Description
$plugin_dir string Plugin directory.
$tests_dir string Testing directory.
$wp_tests_dir string Directory where wordpress-tests-lib is installed

Protected Properties

Property Type Description
$instance Carbon_Fields_Tests_Bootstrap The bootstrap instance.

Public Methods

Method Description
instance ( ) : Carbon_Fields_Tests_Bootstrap Get the single tests boostrap instance
load_plugin ( ) Load the plugin

Private Methods

Method Description
__construct ( ) Setup the unit testing environment

Method Details

instance() public static method

Get the single tests boostrap instance
public static instance ( ) : Carbon_Fields_Tests_Bootstrap
return Carbon_Fields_Tests_Bootstrap

load_plugin() public method

Load the plugin
public load_plugin ( )

Property Details

$instance protected static property

The bootstrap instance.
protected static Carbon_Fields_Tests_Bootstrap $instance
return Carbon_Fields_Tests_Bootstrap

$plugin_dir public property

Plugin directory.
public string $plugin_dir
return string

$tests_dir public property

Testing directory.
public string $tests_dir
return string

$wp_tests_dir public property

Directory where wordpress-tests-lib is installed
public string $wp_tests_dir
return string