We should add tests for things like:

  1. Apply a processor to an image - does it apply.
  2. Apply a processor to an image - is the original image okay even when it fails.
  3. Apply two processors to an image - are the processor effects compounded together in series.
  4. Apply a processor to an image that doesn't exist - what happens?
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Steven Jones created an issue. See original summary.

Steven Jones’s picture

Priority: Normal » Major
Steven Jones’s picture

Status: Active » Needs review
FileSize
11.84 KB

Here's the start of some tests, should cover those first three things in the issue description.

Probably better than nothing, and already shows a bug, but I've commented that out so we can get this in and fix that in another issue.

Steven Jones’s picture

Odd, that test didn't get picked up.

Steven Jones’s picture

Gah! I renamed the class and not the file.

Steven Jones’s picture

Status: Needs review » Needs work

Much more like it! Lets get these tests in, work on the last one, and the can fix the bug with the compound pipeline with failure in the middle.

Steven Jones’s picture

Status: Needs work » Fixed

And I've added that last test. So our first pass on this is done.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.