PHP Класс ElggCoreUnitTest, Elgg

This class is to be extended by all Elgg unit tests. As such, any method here will be available to the tests.
Наследование: extends UnitTestCase
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( ) Class constructor.
__destruct ( ) Class destructor.
assertIdenticalEntities ( ElggEntity $first, ElggEntity $second, string $message = '%s' ) : boolean Will trigger a pass if the two entity parameters have the same "value" and same type. Otherwise a fail.
replaceSession ( ElggUser $user = null ) : ElggUser | null Replace the current user session

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

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

A simple wrapper to call the parent constructor.
public __construct ( )

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

The parent does not provide a destructor, so including an explicit one here.
public __destruct ( )

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

Will trigger a pass if the two entity parameters have the same "value" and same type. Otherwise a fail.
public assertIdenticalEntities ( ElggEntity $first, ElggEntity $second, string $message = '%s' ) : boolean
$first ElggEntity Entity to compare.
$second ElggEntity Entity to compare.
$message string Message to display.
Результат boolean

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

Replace the current user session
public replaceSession ( ElggUser $user = null ) : ElggUser | null
$user ElggUser New user to login as (null to log out)
Результат ElggUser | null Removed session user (or null)