aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authortomneedham <tom@owncloud.com>2014-01-07 00:38:27 +0000
committertomneedham <tom@owncloud.com>2014-01-07 00:38:27 +0000
commit528ff25edecfbe47d11e5e570746ff35dc547d85 (patch)
tree5cc0eff6cbcb14b3de042439b19674f4af0da51a /tests
parent0e843b9d7d36976322df33fee6a3cc36e07fea85 (diff)
downloadnextcloud-server-528ff25edecfbe47d11e5e570746ff35dc547d85.tar.gz
nextcloud-server-528ff25edecfbe47d11e5e570746ff35dc547d85.zip
Add WIP unit test for migration
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/migrate.php32
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/lib/migrate.php b/tests/lib/migrate.php
new file mode 100644
index 00000000000..5c6c9ebe7be
--- /dev/null
+++ b/tests/lib/migrate.php
@@ -0,0 +1,32 @@
+<?php
+/**
+ * Copyright (c) 2014 Tom Needham <tom@owncloud.com>
+ * This file is licensed under the Affero General Public License version 3 or
+ * later.
+ * See the COPYING-README file.
+ */
+
+class Test_Migrate extends PHPUnit_Framework_TestCase {
+
+ public $users;
+
+ public function testUserSelfExport(){
+ // Create a user
+ $user = uniqid();
+ $u = new OC_User();
+ $u->createUser($user, 'password');
+ $this->users[] = $user;
+ $exportLocation = \OC_Migrate::export($user);
+ }
+
+ public function tearDown() {
+ $u = new OC_User();
+ foreach($this->users as $user) {
+ $u->deleteUser($user);
+ }
+ }
+
+
+
+
+}