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
F13273773: D19921.diff
Fri, May 31, 2:37 AM
F13205300: D19921.diff
Wed, May 15, 1:48 AM
F13188695: D19921.diff
Sat, May 11, 5:25 AM
Unknown Object (File)
Tue, May 7, 9:06 AM
Unknown Object (File)
May 3 2024, 8:47 AM
Unknown Object (File)
Apr 28 2024, 11:29 AM
Unknown Object (File)
Apr 25 2024, 11:11 AM
Unknown Object (File)
Apr 25 2024, 2:36 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.