Fix tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
0ad4b89d41
commit
a1f46db793
|
@ -399,6 +399,10 @@ class GeneratorTest extends \Test\TestCase {
|
||||||
);
|
);
|
||||||
|
|
||||||
$result = $this->generator->getPreview($file, $reqX, $reqY, $crop, $mode);
|
$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…
Reference in New Issue