PHP Class E2E\TestCase

Inheritance: extends PHPUnit_Framework_TestCase, use trait WebDriverShortcuts
Show file Open project: phanan/koel

Public Properties

Property Type Description
$wrapperId string ID of the current screen wrapper (with leading #).

Protected Properties

Property Type Description
$app app\Application
$coverPath
$url string The default Koel URL for E2E (server by php artisan serve --port=8081).

Public Methods

Method Description
__construct ( ) TestCase constructor.
setUp ( )
tearDown ( )

Protected Methods

Method Description
createApp ( ) : Application
focusIntoApp ( )
goto ( $screen ) Go to a specific screen.
login ( string $username = '[email protected]', string $password = 'SoSecureK0el' ) Log into Koel.
loginAndGoTo ( $screen ) Log in and go to a specific screen.
loginAndWait ( ) Log in and wait for the app to finish loading.
resetData ( ) Reset the test data for E2E tests.
waitForUserInput ( ) Wait for the user to press ENTER key before continuing.

Method Details

__construct() public method

TestCase constructor.
public __construct ( )

createApp() protected method

protected createApp ( ) : Application
return app\Application

focusIntoApp() protected method

protected focusIntoApp ( )

goto() protected method

Go to a specific screen.
protected goto ( $screen )
$screen

login() protected method

Log into Koel.
protected login ( string $username = '[email protected]', string $password = 'SoSecureK0el' )
$username string
$password string

loginAndGoTo() protected method

Log in and go to a specific screen.
protected loginAndGoTo ( $screen )
$screen string

loginAndWait() protected method

Log in and wait for the app to finish loading.
protected loginAndWait ( )

resetData() protected method

Reset the test data for E2E tests.
protected resetData ( )

setUp() public method

public setUp ( )

tearDown() public method

public tearDown ( )

waitForUserInput() protected method

Wait for the user to press ENTER key before continuing.
protected waitForUserInput ( )

Property Details

$app protected property

protected Application,App $app
return app\Application

$coverPath protected property

protected $coverPath

$url protected property

The default Koel URL for E2E (server by php artisan serve --port=8081).
protected string $url
return string

$wrapperId public property

ID of the current screen wrapper (with leading #).
public string $wrapperId
return string