PHP Class tad\WPBrowser\Extension\SymlinkerTest

Inheritance: extends Codeception\TestCase\Test
ファイルを表示 Open project: lucatume/wp-browser

Protected Properties

Property Type Description
$backupGlobals
$config array
$event Codeception\Event\SuiteEvent
$filename string
$filesystem tad\WPBrowser\Filesystem\Filesystem
$options array
$tester UnitTester

Public Methods

Method Description
it_should_allow_specifying_the_root_folder_in_the_configuration ( )
it_should_be_instantiatable ( )
it_should_fallback_to_default_destination_if_specified_and_multiple_envs_and_none_supported ( )
it_should_fallback_to_first_destination_if_specifying_multiple_envs_and_none_supported ( )
it_should_fallback_to_use_default_destination_if_current_env_has_no_destination_assigned_and_default_destination_is_specified ( )
it_should_fallback_to_use_the_default_destination_if_multiple_envs_destinations_are_set_but_no_cli_env_specified ( )
it_should_fallback_to_use_the_first_available_destination_if_multiple_envs_destination_are_set_but_no_cli_env_specified ( )
it_should_not_attempt_re_linking_if_file_exists_already ( )
it_should_not_attempt_unlinking_if_destination_file_does_not_exist ( )
it_should_read_supported_env_from_comma_separated_list_of_envs ( )
it_should_support_array_of_destinations_to_allow_for_environments_settings ( )
it_should_symlink_the_files_over_to_the_destination_if_mode_is_theme_before_the_suite_runs ( )
it_should_symlink_the_root_folder_into_the_destination_before_the_suite_runs ( )
it_should_throw_if_config_specified_root_folder_is_not_a_folder ( )
it_should_throw_if_config_specified_root_folder_is_not_readable ( )
it_should_throw_if_destination_is_not_dir ( )
it_should_throw_if_destination_is_not_writeable ( )
it_should_throw_if_mode_is_not_plugin_or_theme_ ( )
it_should_throw_if_symlinking_destination_is_missing ( )
it_should_throw_if_symlinking_mode_is_missing ( )
it_should_unlink_the_linked_theme_from_the_destination_folder_after_the_suite_ran_if_mode_is_theme ( )
it_should_unlink_the_root_folder_from_the_destination_after_the_suite_ran ( )

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_allow_specifying_the_root_folder_in_the_configuration() public method

it_should_be_instantiatable() public method

it_should_fallback_to_default_destination_if_specified_and_multiple_envs_and_none_supported() public method

it_should_fallback_to_first_destination_if_specifying_multiple_envs_and_none_supported() public method

it_should_fallback_to_use_default_destination_if_current_env_has_no_destination_assigned_and_default_destination_is_specified() public method

it_should_fallback_to_use_the_default_destination_if_multiple_envs_destinations_are_set_but_no_cli_env_specified() public method

it_should_fallback_to_use_the_first_available_destination_if_multiple_envs_destination_are_set_but_no_cli_env_specified() public method

it_should_not_attempt_re_linking_if_file_exists_already() public method

it_should_not_attempt_unlinking_if_destination_file_does_not_exist() public method

it_should_read_supported_env_from_comma_separated_list_of_envs() public method

it_should_support_array_of_destinations_to_allow_for_environments_settings() public method

it_should_throw_if_config_specified_root_folder_is_not_a_folder() public method

it_should_throw_if_config_specified_root_folder_is_not_readable() public method

it_should_throw_if_destination_is_not_dir() public method

it_should_throw_if_destination_is_not_writeable() public method

it_should_throw_if_mode_is_not_plugin_or_theme_() public method

it_should_throw_if_symlinking_destination_is_missing() public method

it_should_throw_if_symlinking_mode_is_missing() public method

Property Details

$backupGlobals protected_oe property

protected $backupGlobals

$config protected_oe property

protected array $config
return array

$event protected_oe property

protected SuiteEvent,Codeception\Event $event
return Codeception\Event\SuiteEvent

$filename protected_oe property

protected string $filename
return string

$filesystem protected_oe property

protected Filesystem,tad\WPBrowser\Filesystem $filesystem
return tad\WPBrowser\Filesystem\Filesystem

$options protected_oe property

protected array $options
return array

$tester protected_oe property

protected UnitTester $tester
return UnitTester