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
F19104589: D19921.id.diff
Fri, Dec 5, 2:38 PM
F19098575: D19921.diff
Thu, Dec 4, 5:07 PM
F19082899: D19921.id47562.diff
Tue, Dec 2, 12:27 PM
F19080014: D19921.id47546.diff
Mon, Dec 1, 11:48 PM
F19067165: D19921.id47562.diff
Sun, Nov 30, 7:06 AM
F19058060: D19921.diff
Sat, Nov 29, 12:39 AM
F19057584: D19921.id47562.diff
Fri, Nov 28, 11:19 PM
F19055410: D19921.id47562.diff
Fri, Nov 28, 5:27 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
Branch
pholio9
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 21399
Build 29142: Run Core Tests
Build 29141: arc lint + arc unit

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.