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
파일 보기 프로젝트 열기: elgg/elgg

공개 프로퍼티들

프로퍼티 타입 설명
$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[]