PHP Класс E2E\TestCase

Наследование: extends PHPUnit_Framework_TestCase, use trait WebDriverShortcuts
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$wrapperId string ID of the current screen wrapper (with leading #).

Защищенные свойства (Protected)

Свойство Тип Описание
$app app\Application
$coverPath
$url string The default Koel URL for E2E (server by php artisan serve --port=8081).

Открытые методы

Метод Описание
__construct ( ) TestCase constructor.
setUp ( )
tearDown ( )

Защищенные методы

Метод Описание
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.

Описание методов

__construct() публичный Метод

TestCase constructor.
public __construct ( )

createApp() защищенный Метод

protected createApp ( ) : Application
Результат app\Application

focusIntoApp() защищенный Метод

protected focusIntoApp ( )

goto() защищенный Метод

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

login() защищенный Метод

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

loginAndGoTo() защищенный Метод

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

loginAndWait() защищенный Метод

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

resetData() защищенный Метод

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

setUp() публичный Метод

public setUp ( )

tearDown() публичный Метод

public tearDown ( )

waitForUserInput() защищенный Метод

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

Описание свойств

$app защищенное свойство

protected Application,App $app
Результат app\Application

$coverPath защищенное свойство

protected $coverPath

$url защищенное свойство

The default Koel URL for E2E (server by php artisan serve --port=8081).
protected string $url
Результат string

$wrapperId публичное свойство

ID of the current screen wrapper (with leading #).
public string $wrapperId
Результат string