From 528ff25edecfbe47d11e5e570746ff35dc547d85 Mon Sep 17 00:00:00 2001 From: tomneedham <tom@owncloud.com> Date: Tue, 7 Jan 2014 00:38:27 +0000 Subject: [PATCH] Add WIP unit test for migration --- tests/lib/migrate.php | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 tests/lib/migrate.php 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); + } + } + + + + +}