Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / pholio / engine / PholioMockTimelineEngine.php
blob8543649e6888890adc413b9d7c74cdad18b3d34b
1 <?php
3 final class PholioMockTimelineEngine
4 extends PhabricatorTimelineEngine {
6 protected function newTimelineView() {
7 $viewer = $this->getViewer();
8 $object = $this->getObject();
10 $images = id(new PholioImageQuery())
11 ->setViewer($viewer)
12 ->withMocks(array($object))
13 ->needInlineComments(true)
14 ->execute();
16 $object->attachImages($images);
18 return id(new PholioTransactionView())
19 ->setMock($object);