diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-04-04 11:37:47 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-04-04 11:37:47 +0200 |
commit | f029312e5b20a540aa94f2ead4581a8b653b1c5c (patch) | |
tree | a5fb32112c8eb3979efc18d12f8f8395a1acbad8 /tests/lib/preview.php | |
parent | c7324f7e44d1d1bd5c39a9b967dff76b274b9048 (diff) | |
download | nextcloud-server-f029312e5b20a540aa94f2ead4581a8b653b1c5c.tar.gz nextcloud-server-f029312e5b20a540aa94f2ead4581a8b653b1c5c.zip |
fixing typos/spellings
Diffstat (limited to 'tests/lib/preview.php')
-rw-r--r-- | tests/lib/preview.php | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/tests/lib/preview.php b/tests/lib/preview.php index 353b66fd6d6..fb1c959b45a 100644 --- a/tests/lib/preview.php +++ b/tests/lib/preview.php @@ -17,9 +17,9 @@ class Preview extends \PHPUnit_Framework_TestCase { $rootView->mkdir('/'.$user); $rootView->mkdir('/'.$user.'/files'); - $samplefile = '/'.$user.'/files/test.txt'; + $sampleFile = '/'.$user.'/files/test.txt'; - $rootView->file_put_contents($samplefile, 'dummy file data'); + $rootView->file_put_contents($sampleFile, 'dummy file data'); $x = 50; $y = 50; @@ -27,16 +27,16 @@ class Preview extends \PHPUnit_Framework_TestCase { $preview = new \OC\Preview($user, 'files/', 'test.txt', $x, $y); $preview->getPreview(); - $fileinfo = $rootView->getFileInfo($samplefile); - $fileid = $fileinfo['fileid']; + $fileInfo = $rootView->getFileInfo($sampleFile); + $fileId = $fileInfo['fileid']; - $thumbcachefile = '/' . $user . '/' . \OC\Preview::THUMBNAILS_FOLDER . '/' . $fileid . '/' . $x . '-' . $y . '.png'; + $thumbCacheFile = '/' . $user . '/' . \OC\Preview::THUMBNAILS_FOLDER . '/' . $fileId . '/' . $x . '-' . $y . '.png'; - $this->assertEquals($rootView->file_exists($thumbcachefile), true); + $this->assertEquals($rootView->file_exists($thumbCacheFile), true); $preview->deletePreview(); - $this->assertEquals($rootView->file_exists($thumbcachefile), false); + $this->assertEquals($rootView->file_exists($thumbCacheFile), false); } public function testAreAllPreviewsDeleted() { @@ -46,9 +46,9 @@ class Preview extends \PHPUnit_Framework_TestCase { $rootView->mkdir('/'.$user); $rootView->mkdir('/'.$user.'/files'); - $samplefile = '/'.$user.'/files/test.txt'; + $sampleFile = '/'.$user.'/files/test.txt'; - $rootView->file_put_contents($samplefile, 'dummy file data'); + $rootView->file_put_contents($sampleFile, 'dummy file data'); $x = 50; $y = 50; @@ -56,16 +56,16 @@ class Preview extends \PHPUnit_Framework_TestCase { $preview = new \OC\Preview($user, 'files/', 'test.txt', $x, $y); $preview->getPreview(); - $fileinfo = $rootView->getFileInfo($samplefile); - $fileid = $fileinfo['fileid']; + $fileInfo = $rootView->getFileInfo($sampleFile); + $fileId = $fileInfo['fileid']; - $thumbcachefolder = '/' . $user . '/' . \OC\Preview::THUMBNAILS_FOLDER . '/' . $fileid . '/'; + $thumbCacheFolder = '/' . $user . '/' . \OC\Preview::THUMBNAILS_FOLDER . '/' . $fileId . '/'; - $this->assertEquals($rootView->is_dir($thumbcachefolder), true); + $this->assertEquals($rootView->is_dir($thumbCacheFolder), true); $preview->deleteAllPreviews(); - $this->assertEquals($rootView->is_dir($thumbcachefolder), false); + $this->assertEquals($rootView->is_dir($thumbCacheFolder), false); } public function testIsMaxSizeWorking() { @@ -81,9 +81,9 @@ class Preview extends \PHPUnit_Framework_TestCase { $rootView->mkdir('/'.$user); $rootView->mkdir('/'.$user.'/files'); - $samplefile = '/'.$user.'/files/test.txt'; + $sampleFile = '/'.$user.'/files/test.txt'; - $rootView->file_put_contents($samplefile, 'dummy file data'); + $rootView->file_put_contents($sampleFile, 'dummy file data'); $preview = new \OC\Preview($user, 'files/', 'test.txt', 1000, 1000); $image = $preview->getPreview(); |