Page MenuHomePhabricator

Make the Pholio Mock "getImages" / "getAllImages" API more clear
ClosedPublic

Authored by epriestley on Dec 20 2018, 7:48 PM.
Tags
None
Referenced Files
F15494376: D19921.id47546.diff
Sat, Apr 12, 11:30 PM
F15492460: D19921.id47562.diff
Sat, Apr 12, 2:42 PM
F15462599: D19921.id.diff
Tue, Apr 1, 4:16 PM
F15459998: D19921.diff
Mon, Mar 31, 7:03 PM
F15444046: D19921.diff
Thu, Mar 27, 7:31 AM
F15383413: D19921.diff
Mar 14 2025, 4:36 PM
Unknown Object (File)
Feb 26 2025, 7:10 AM
Unknown Object (File)
Feb 20 2025, 2:13 AM
Subscribers
None

Details

Summary

Depends on D19920. Ref T11351. Currently, "images" and "all images" are attached to Mocks separately, and getImages() gets you only some images.

Clean this up slightly:

  • One attach method; attach everything.
  • Two getters, one for "images" (returns all images); one for "active images" (returns active images).
Test Plan

Browsed around Pholio without any apparent behavioral changes.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

src/applications/pholio/storage/PholioMock.php
121

This was a bug, should have asserted allImages instead.

This revision is now accepted and ready to land.Dec 20 2018, 10:00 PM
This revision was automatically updated to reflect the committed changes.