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
F14062773: D19921.diff
Mon, Nov 18, 2:25 PM
F14053360: D19921.id47562.diff
Fri, Nov 15, 3:07 PM
F14048927: D19921.diff
Thu, Nov 14, 10:20 AM
F14036600: D19921.id47562.diff
Sun, Nov 10, 11:04 AM
F14034981: D19921.diff
Sun, Nov 10, 3:20 AM
F14021717: D19921.diff
Wed, Nov 6, 11:42 AM
F13985347: D19921.diff
Sun, Oct 20, 7:52 PM
F13981166: D19921.diff
Oct 19 2024, 2:39 PM
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.