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.
ファイルを表示
Open project: elgg/elgg
Public Properties
Property |
Type |
Description |
|
$rows |
stdClas\stdClass[] |
|
|
Public Methods
Method Details
public add ( $guid_one, $relationship, $guid_two, $return_id = false ) |
addQuerySpecs()
public method
Add query specs for a relationship data row
clearQuerySpecs()
public method
Property Details
public stdClass[],stdClas $rows |
return |
stdClas\stdClass[] |
|