diff --git a/src/applications/pholio/lipsum/PhabricatorPholioMockTestDataGenerator.php b/src/applications/pholio/lipsum/PhabricatorPholioMockTestDataGenerator.php index a9cfdb6bb6..3386219d66 100644 --- a/src/applications/pholio/lipsum/PhabricatorPholioMockTestDataGenerator.php +++ b/src/applications/pholio/lipsum/PhabricatorPholioMockTestDataGenerator.php @@ -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()); diff --git a/src/applications/pholio/storage/PholioMock.php b/src/applications/pholio/storage/PholioMock.php index 71feb3919e..ed1a983d2b 100644 --- a/src/applications/pholio/storage/PholioMock.php +++ b/src/applications/pholio/storage/PholioMock.php @@ -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); }