diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2017-03-19 21:15:54 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-03-19 21:15:54 +0100 |
commit | a1f46db793241d910a5ba456473419d96809a275 (patch) | |
tree | 0f85d811da1eb55f5dec62f821fffac11f3f8ed9 /tests/lib/Preview | |
parent | 0ad4b89d4168680e87e64919507895b8d7d5f158 (diff) | |
download | nextcloud-server-a1f46db793241d910a5ba456473419d96809a275.tar.gz nextcloud-server-a1f46db793241d910a5ba456473419d96809a275.zip |
Fix tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests/lib/Preview')
-rw-r--r-- | tests/lib/Preview/GeneratorTest.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/lib/Preview/GeneratorTest.php b/tests/lib/Preview/GeneratorTest.php index ddb24cdb3ee..50d46ae932d 100644 --- a/tests/lib/Preview/GeneratorTest.php +++ b/tests/lib/Preview/GeneratorTest.php @@ -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); + } } } |