diff options
author | Georg Ehrke <developer@georgehrke.com> | 2013-07-11 13:39:10 +0200 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2013-07-11 13:39:10 +0200 |
commit | 89554bd917f9cbc7d16cc31b754a47d9f942b0b1 (patch) | |
tree | 9e8583563466dc0935e12cbd7ca3156018e7fe65 /tests | |
parent | ec75e1904d9d4c77d1a6c1c656e7deeae07a8804 (diff) | |
download | nextcloud-server-89554bd917f9cbc7d16cc31b754a47d9f942b0b1.tar.gz nextcloud-server-89554bd917f9cbc7d16cc31b754a47d9f942b0b1.zip |
it's setValue not getValue, damn type
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/preview.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/lib/preview.php b/tests/lib/preview.php index 2599da400c8..c4894f848f6 100644 --- a/tests/lib/preview.php +++ b/tests/lib/preview.php @@ -74,8 +74,8 @@ class Preview extends \PHPUnit_Framework_TestCase { $maxX = 250; $maxY = 250; - \OC_Config::getValue('preview_max_x', $maxX); - \OC_Config::getValue('preview_max_y', $maxY); + \OC_Config::setValue('preview_max_x', $maxX); + \OC_Config::setValue('preview_max_y', $maxY); $rootView = new \OC\Files\View(''); $rootView->mkdir('/'.$user); @@ -87,7 +87,10 @@ class Preview extends \PHPUnit_Framework_TestCase { $preview = new \OC\Preview($user, 'files/', 'test.txt', 1000, 1000); $image = $preview->getPreview(); - + + var_dump($image->width()); + var_dump($image->height()); + $this->assertEquals($image->width(), $maxX); $this->assertEquals($image->height(), $maxY); } |