PHP Класс Elgg\Mocks\Database\RelationshipsTable

It populates the mock database with query specifications for predictable results when relationship are requested or deleted. Note that this mock is not designed for testing the relationships table itself. When testing the relationships table, you should define query specs individually for the method being tested.
Наследование: extends Elgg\Database\RelationshipsTable
Показать файл Открыть проект

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

Свойство Тип Описание
$rows stdClas\stdClass[]

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

Метод Описание
add ( $guid_one, $relationship, $guid_two, $return_id = false )
addQuerySpecs ( stdClass $row ) : void Add query specs for a relationship data row
clearQuerySpecs ( integer $id ) : void Clear query specs

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

add() публичный метод

public add ( $guid_one, $relationship, $guid_two, $return_id = false )

addQuerySpecs() публичный метод

Add query specs for a relationship data row
public addQuerySpecs ( stdClass $row ) : void
$row stdClass Data row
Результат void

clearQuerySpecs() публичный метод

Clear query specs
public clearQuerySpecs ( integer $id ) : void
$id integer Relationship ID
Результат void

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

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

public stdClass[],stdClas $rows
Результат stdClas\stdClass[]