summaryrefslogtreecommitdiffstats
path: root/tests/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2015-03-03 12:52:27 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2015-03-11 16:37:42 +0100
commit1a0f9c375be12502d9b016c6bdb4c898ec765bbd (patch)
tree6b287f2d71e94740b364d17a5f23424d5f6668aa /tests/lib
parentcfaee93552b519b8e017e63fd5a82b1e5c9f951b (diff)
downloadnextcloud-server-1a0f9c375be12502d9b016c6bdb4c898ec765bbd.tar.gz
nextcloud-server-1a0f9c375be12502d9b016c6bdb4c898ec765bbd.zip
Avatar controller moved to AppFrameWork
* Original avatarcontroller migrated to the appframework * Added DataDisplayResponse that show data inline in the browser (used to retrun the image) * Removed some unneeded code * Added unit tests for the avatarcontroller
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib/avatar.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/lib/avatar.php b/tests/lib/avatar.php
index 421be155d17..e852a7fc6ff 100644
--- a/tests/lib/avatar.php
+++ b/tests/lib/avatar.php
@@ -6,6 +6,9 @@
* later.
* See the COPYING-README file.
*/
+
+use OC\Avatar;
+
class Test_Avatar extends \Test\TestCase {
private $user;
@@ -20,7 +23,7 @@ class Test_Avatar extends \Test\TestCase {
public function testAvatar() {
- $avatar = new \OC_Avatar($this->user);
+ $avatar = new Avatar($this->user);
$this->assertEquals(false, $avatar->get());