Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14105840
D11924.id28736.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D11924.id28736.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D11924: Fix lispum generation of Pholio mocks
Attached
Detach File
Event Timeline
Log In to Comment