Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conpherence/__tests__/ConpherenceTestCase.php
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | $params = array( | ||||
'name' => 'test.'.$actor->getPHID(), | 'name' => 'test.'.$actor->getPHID(), | ||||
'viewPolicy' => $actor->getPHID(), | 'viewPolicy' => $actor->getPHID(), | ||||
'authorPHID' => $actor->getPHID(), | 'authorPHID' => $actor->getPHID(), | ||||
'storageEngines' => array( | 'storageEngines' => array( | ||||
$engine, | $engine, | ||||
), | ), | ||||
); | ); | ||||
$file = PhabricatorFile::newFromFileData($data, $params); | $file = PhabricatorFile::newFromFileData($data, $params, $actor); | ||||
$file->save(); | $file->save(); | ||||
return $file; | return $file; | ||||
} | } | ||||
} | } |