]> source.dussan.org Git - nextcloud-server.git/commitdiff
rename variable in testIsTransparent
authorGeorg Ehrke <developer@georgehrke.com>
Fri, 27 Sep 2013 12:55:37 +0000 (14:55 +0200)
committerGeorg Ehrke <developer@georgehrke.com>
Fri, 27 Sep 2013 12:55:37 +0000 (14:55 +0200)
tests/lib/preview.php

index 01d8a57fc68b6ed34b816d9169ea555a95723edc..d0cdd2c44fba78c7031333e4132117a70f3a9344 100644 (file)
@@ -107,7 +107,7 @@ class Preview extends \PHPUnit_Framework_TestCase {
        /**
         * @dataProvider txtBlacklist
         */
-       public function testIsTransparent($test, $data, $expectedResult) {
+       public function testIsTransparent($extension, $data, $expectedResult) {
                $user = $this->initFS();
 
                $rootView = new \OC\Files\View('');
@@ -117,9 +117,9 @@ class Preview extends \PHPUnit_Framework_TestCase {
                $x = 32;
                $y = 32;
 
-               $sample = '/'.$user.'/files/test.'.$test;
+               $sample = '/'.$user.'/files/test.'.$extension;
                $rootView->file_put_contents($sample, $data);
-               $preview = new \OC\Preview($user, 'files/', 'test.'.$test, $x, $y);
+               $preview = new \OC\Preview($user, 'files/', 'test.'.$extension, $x, $y);
                $image = $preview->getPreview();
                $resource = $image->resource();