3 final class PholioMockFulltextEngine
4 extends PhabricatorFulltextEngine
{
6 protected function buildAbstractDocument(
7 PhabricatorSearchAbstractDocument
$document,
12 $document->setDocumentTitle($mock->getName());
15 PhabricatorSearchDocumentFieldType
::FIELD_BODY
,
16 $mock->getDescription());
18 $document->addRelationship(
19 PhabricatorSearchRelationship
::RELATIONSHIP_AUTHOR
,
20 $mock->getAuthorPHID(),
21 PhabricatorPeopleUserPHIDType
::TYPECONST
,
22 $mock->getDateCreated());
24 $document->addRelationship(
26 ? PhabricatorSearchRelationship
::RELATIONSHIP_CLOSED
27 : PhabricatorSearchRelationship
::RELATIONSHIP_OPEN
,
29 PholioMockPHIDType
::TYPECONST
,
30 PhabricatorTime
::getNow());