PHP Class E2E\TestCase

Inheritance: extends PHPUnit_Framework_TestCase, use trait WebDriverShortcuts
Afficher le fichier Open project: phanan/koel

Méthodes publiques

Свойство Type Description
$wrapperId string ID of the current screen wrapper (with leading #).

Protected Properties

Свойство Type Description
$app app\Application
$coverPath
$url string The default Koel URL for E2E (server by php artisan serve --port=8081).

Méthodes publiques

Méthode Description
__construct ( ) TestCase constructor.
setUp ( )
tearDown ( )

Méthodes protégées

Méthode 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 méthode

TestCase constructor.
public __construct ( )

createApp() protected méthode

protected createApp ( ) : Application
Résultat app\Application

focusIntoApp() protected méthode

protected focusIntoApp ( )

goto() protected méthode

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

login() protected méthode

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

loginAndGoTo() protected méthode

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

loginAndWait() protected méthode

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

resetData() protected méthode

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

setUp() public méthode

public setUp ( )

tearDown() public méthode

public tearDown ( )

waitForUserInput() protected méthode

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

Property Details

$app protected_oe property

protected Application,App $app
Résultat app\Application

$coverPath protected_oe property

protected $coverPath

$url protected_oe property

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

$wrapperId public_oe property

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