Page MenuHomePhabricator

D11924.id28736.diff
No OneTemporary

D11924.id28736.diff

diff --git a/src/applications/pholio/lipsum/PhabricatorPholioMockTestDataGenerator.php b/src/applications/pholio/lipsum/PhabricatorPholioMockTestDataGenerator.php
--- a/src/applications/pholio/lipsum/PhabricatorPholioMockTestDataGenerator.php
+++ b/src/applications/pholio/lipsum/PhabricatorPholioMockTestDataGenerator.php
@@ -7,8 +7,8 @@
$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());
diff --git a/src/applications/pholio/storage/PholioMock.php b/src/applications/pholio/storage/PholioMock.php
--- a/src/applications/pholio/storage/PholioMock.php
+++ b/src/applications/pholio/storage/PholioMock.php
@@ -41,6 +41,7 @@
return id(new PholioMock())
->setAuthorPHID($actor->getPHID())
->attachImages(array())
+ ->setStatus('open')
->setViewPolicy($view_policy)
->setEditPolicy($edit_policy);
}

File Metadata

Mime Type
text/plain
Expires
Thu, Nov 28, 3:42 AM (14 h, 7 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6798269
Default Alt Text
D11924.id28736.diff (1 KB)

Event Timeline