PHP Class tad\WPBrowser\Module\Support\UriToIndexMapperTest

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

Protected Properties

Property Type Description
$backupGlobals
$root org\bovigo\vfs\vfsStreamDirectory
$tester UnitTester

Public Methods

Method Description
adminUris ( )
cronUris ( )
it_should_be_instantiatable ( )
it_should_map_existing_files_to_the_files ( $uri, $expected )
it_should_map_non_existing_files_to_main_index_file ( $uri )
it_should_map_pretty_permalinks_to_root_index_file ( $uri )
it_should_map_site_root_to_root_index_file ( )
it_should_map_wp_admin_to_wp_admin_index_php ( $uri )
it_should_properly_map_wp_cron_php ( $uri )
it_should_return_index_file_when_uri_is_empty ( )
it_should_return_login_when_params_are_appended_to_it ( $uri )
it_should_return_the_index_file_when_passing_root_with_params ( )
it_should_return_the_login_file_when_trying_to_reach_wp_login_php ( )
loginAndParams ( )
nonExistingFiles ( )
prettyPermalinks ( )
realFiles ( )

Protected Methods

Method Description
_after ( )
_before ( )

Private Methods

Method Description
make_instance ( ) : UriToIndexMapper

Method Details

_after() protected method

protected _after ( )

_before() protected method

protected _before ( )

adminUris() public method

public adminUris ( )

cronUris() public method

public cronUris ( )

it_should_be_instantiatable() public method

it_should_map_existing_files_to_the_files() public method

public it_should_map_existing_files_to_the_files ( $uri, $expected )

it_should_map_non_existing_files_to_main_index_file() public method

it_should_map_site_root_to_root_index_file() public method

it_should_map_wp_admin_to_wp_admin_index_php() public method

it_should_properly_map_wp_cron_php() public method

it_should_return_index_file_when_uri_is_empty() public method

it_should_return_login_when_params_are_appended_to_it() public method

it_should_return_the_index_file_when_passing_root_with_params() public method

it_should_return_the_login_file_when_trying_to_reach_wp_login_php() public method

loginAndParams() public method

public loginAndParams ( )

nonExistingFiles() public method

public nonExistingFiles ( )

realFiles() public method

public realFiles ( )

Property Details

$backupGlobals protected property

protected $backupGlobals

$root protected property

protected vfsStreamDirectory,org\bovigo\vfs $root
return org\bovigo\vfs\vfsStreamDirectory

$tester protected property

protected UnitTester $tester
return UnitTester