Browse Source

Fix tests

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
tags/v12.0.0beta1
Roeland Jago Douma 7 years ago
parent
commit
a1f46db793
No account linked to committer's email address
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      tests/lib/Preview/GeneratorTest.php

+ 5
- 1
tests/lib/Preview/GeneratorTest.php View File

@@ -399,6 +399,10 @@ class GeneratorTest extends \Test\TestCase {
);

$result = $this->generator->getPreview($file, $reqX, $reqY, $crop, $mode);
$this->assertSame($preview, $result);
if ($expectedX === $maxX && $expectedY === $maxY) {
$this->assertSame($maxPreview, $result);
} else {
$this->assertSame($preview, $result);
}
}
}

Loading…
Cancel
Save