mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +01:00
Fix lispum generation of Pholio mocks
Summary: Fixes T7406. Unbreak this oldschool code. Test Plan: ``` GENERATING: PhabricatorPholioMockTestDataGenerator Generated Mock: M8: Ipsum est eu enim magna do; reprehenderit. Generated Mock: M9: Dolor est culpa esse cillum ullamco. Generated Mock: M10: Lorem do cillum sint mollit: minim, in, aliqua esse. ``` Also created a mock normally, worked/looked fine. Reviewers: joshuaspence, btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T7406 Differential Revision: https://secure.phabricator.com/D11924
This commit is contained in:
parent
d69a6b8490
commit
a9b4197f93
2 changed files with 3 additions and 2 deletions
|
@ -7,8 +7,8 @@ final class PhabricatorPholioMockTestDataGenerator
|
|||
$author_phid = $this->loadPhabrictorUserPHID();
|
||||
$author = id(new PhabricatorUser())
|
||||
->loadOneWhere('phid = %s', $author_phid);
|
||||
$mock = id(new PholioMock())
|
||||
->setAuthorPHID($author_phid);
|
||||
$mock = PholioMock::initializeNewMock($author);
|
||||
|
||||
$content_source = PhabricatorContentSource::newForSource(
|
||||
PhabricatorContentSource::SOURCE_UNKNOWN,
|
||||
array());
|
||||
|
|
|
@ -41,6 +41,7 @@ final class PholioMock extends PholioDAO
|
|||
return id(new PholioMock())
|
||||
->setAuthorPHID($actor->getPHID())
|
||||
->attachImages(array())
|
||||
->setStatus('open')
|
||||
->setViewPolicy($view_policy)
|
||||
->setEditPolicy($edit_policy);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue