PHP Class 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.
Inheritance: extends Elgg\Database\RelationshipsTable
Afficher le fichier Open project: elgg/elgg

Méthodes publiques

Свойство Type Description
$rows stdClas\stdClass[]

Méthodes publiques

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

Method Details

add() public méthode

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

addQuerySpecs() public méthode

Add query specs for a relationship data row
public addQuerySpecs ( stdClass $row ) : void
$row stdClass Data row
Résultat void

clearQuerySpecs() public méthode

Clear query specs
public clearQuerySpecs ( integer $id ) : void
$id integer Relationship ID
Résultat void

Property Details

$rows public_oe property

public stdClass[],stdClas $rows
Résultat stdClas\stdClass[]