diff options
Diffstat (limited to 'tests/lib/Preview/Provider.php')
-rw-r--r-- | tests/lib/Preview/Provider.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/lib/Preview/Provider.php b/tests/lib/Preview/Provider.php index 5377f30df82..2050b3f56b4 100644 --- a/tests/lib/Preview/Provider.php +++ b/tests/lib/Preview/Provider.php @@ -21,6 +21,8 @@ namespace Test\Preview; +use OC\Files\Node\File; + abstract class Provider extends \Test\TestCase { /** @var string */ @@ -136,7 +138,8 @@ abstract class Provider extends \Test\TestCase { * @return bool|\OCP\IImage */ private function getPreview($provider) { - $preview = $provider->getThumbnail($this->imgPath, $this->maxWidth, $this->maxHeight, $this->scalingUp, $this->rootView); + $file = new File(\OC::$server->getRootFolder(), $this->rootView, $this->imgPath); + $preview = $provider->getThumbnail($file, $this->maxWidth, $this->maxHeight, $this->scalingUp); $this->assertNotEquals(false, $preview); $this->assertEquals(true, $preview->valid()); |