mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-25 22:18:19 +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_phid = $this->loadPhabrictorUserPHID();
|
||||||
$author = id(new PhabricatorUser())
|
$author = id(new PhabricatorUser())
|
||||||
->loadOneWhere('phid = %s', $author_phid);
|
->loadOneWhere('phid = %s', $author_phid);
|
||||||
$mock = id(new PholioMock())
|
$mock = PholioMock::initializeNewMock($author);
|
||||||
->setAuthorPHID($author_phid);
|
|
||||||
$content_source = PhabricatorContentSource::newForSource(
|
$content_source = PhabricatorContentSource::newForSource(
|
||||||
PhabricatorContentSource::SOURCE_UNKNOWN,
|
PhabricatorContentSource::SOURCE_UNKNOWN,
|
||||||
array());
|
array());
|
||||||
|
|
|
@ -41,6 +41,7 @@ final class PholioMock extends PholioDAO
|
||||||
return id(new PholioMock())
|
return id(new PholioMock())
|
||||||
->setAuthorPHID($actor->getPHID())
|
->setAuthorPHID($actor->getPHID())
|
||||||
->attachImages(array())
|
->attachImages(array())
|
||||||
|
->setStatus('open')
|
||||||
->setViewPolicy($view_policy)
|
->setViewPolicy($view_policy)
|
||||||
->setEditPolicy($edit_policy);
|
->setEditPolicy($edit_policy);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue