blob: 5c6c9ebe7be0297d187246f4e88275ecbe17afe8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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);
}
}
}
|