PHP Class phpbb_ui_test_case

Inheritance: extends phpbb_test_case
Mostra file Open project: phpbb/phpbb Class Usage Examples

Protected Properties

Property Type Description
$already_installed
$cache
$config
$db
$extension_manager
$host
$install_success
$lang array Language array used by phpBB
$port
$root_url
$sid string Session ID for current test's session (each test makes its own)
$webDriver Facebook\WebDriver\Remote\RemoteWebDriver

Public Methods

Method Description
assertContainsLang ( string $needle, string $haystack, string $message = null ) assertContains for language strings
assertNotContainsLang ( string $needle, string $haystack, string $message = null ) assertNotContains for language strings
find_element ( $type, $value )
install_ext ( $extension )
setUp ( )
setUpBeforeClass ( )
submit ( $type = 'id', $value = 'submit' )
take_screenshot ( ) Take screenshot. Can be used for debug purposes.
visit ( $path )

Protected Methods

Method Description
add_lang ( $lang_file )
add_lang_ext ( $ext_name, $lang_file )
admin_login ( $username = 'admin' ) Login to the ACP You must run login() before calling this.
get_cache_driver ( )
get_db ( )
get_extension_manager ( )
install_board ( )
lang ( )
login ( $username = 'admin' )
logout ( )
purge_cache ( )
recreate_database ( $config )
setup_extensions ( ) : array
tearDown ( )

Method Details

add_lang() protected method

protected add_lang ( $lang_file )

add_lang_ext() protected method

protected add_lang_ext ( $ext_name, $lang_file )

admin_login() protected method

Login to the ACP You must run login() before calling this.
protected admin_login ( $username = 'admin' )

assertContainsLang() public method

assertContains for language strings
public assertContainsLang ( string $needle, string $haystack, string $message = null )
$needle string Search string
$haystack string Search this
$message string Optional failure message

assertNotContainsLang() public method

assertNotContains for language strings
public assertNotContainsLang ( string $needle, string $haystack, string $message = null )
$needle string Search string
$haystack string Search this
$message string Optional failure message

find_element() public static method

public static find_element ( $type, $value )

get_cache_driver() protected method

protected get_cache_driver ( )

get_db() protected method

protected get_db ( )

get_extension_manager() protected method

protected get_extension_manager ( )

install_board() protected static method

protected static install_board ( )

install_ext() public method

public install_ext ( $extension )

lang() protected method

protected lang ( )

login() protected method

protected login ( $username = 'admin' )

logout() protected method

protected logout ( )

purge_cache() protected method

protected purge_cache ( )

recreate_database() protected static method

protected static recreate_database ( $config )

setUp() public method

public setUp ( )

setUpBeforeClass() public static method

public static setUpBeforeClass ( )

setup_extensions() protected static method

protected static setup_extensions ( ) : array
return array List of extensions that should be set up

submit() public static method

public static submit ( $type = 'id', $value = 'submit' )

take_screenshot() public method

Take screenshot. Can be used for debug purposes.
public take_screenshot ( )

tearDown() protected method

protected tearDown ( )

visit() public static method

public static visit ( $path )

Property Details

$already_installed protected_oe static_oe property

protected static $already_installed

$cache protected_oe property

protected $cache

$config protected_oe static_oe property

protected static $config

$db protected_oe property

protected $db

$extension_manager protected_oe property

protected $extension_manager

$host protected_oe static_oe property

protected static $host

$install_success protected_oe static_oe property

protected static $install_success

$lang protected_oe property

Language array used by phpBB
protected array $lang
return array

$port protected_oe static_oe property

protected static $port

$root_url protected_oe static_oe property

protected static $root_url

$sid protected_oe property

Session ID for current test's session (each test makes its own)
protected string $sid
return string

$webDriver protected_oe static_oe property

protected static RemoteWebDriver,Facebook\WebDriver\Remote $webDriver
return Facebook\WebDriver\Remote\RemoteWebDriver