diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2016-03-04 15:02:26 +0300 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2016-03-04 15:32:38 +0300 |
commit | 396dde057d41fb74aa4d00f3fc2d742e3bc84e52 (patch) | |
tree | 6984a47c9cd5a3a3a9b5807d5963a2369e66d9f5 /tests | |
parent | d2f003126141d217e998e6e2a939b71c52d5b9e8 (diff) |
Try to fix the tests
Diffstat (limited to 'tests')
-rw-r--r-- | tests/cron/tasktest.php | 2 | ||||
-rw-r--r-- | tests/itemtest.php | 2 | ||||
-rw-r--r-- | tests/scannertest.php | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/cron/tasktest.php b/tests/cron/tasktest.php index 510524c..f3d1222 100644 --- a/tests/cron/tasktest.php +++ b/tests/cron/tasktest.php @@ -19,7 +19,7 @@ class Test_Files_Antivirus_Cron_TaskTest extends \OCA\Files_Antivirus\Tests\Test $results = $userManager->search('', 1, 0); if (!count($results)) { - \OC_User::createUser('test', 'test'); + \OC::$server->getUserManager()->createUser('test', 'test'); } $this->scannerFactory = new ScannerFactory( $this->config, diff --git a/tests/itemtest.php b/tests/itemtest.php index eacfdf0..d2866a8 100644 --- a/tests/itemtest.php +++ b/tests/itemtest.php @@ -27,7 +27,7 @@ class Test_Files_Antivirus_Item extends \OCA\Files_Antivirus\Tests\Testbase { \OC\Files\Filesystem::clearMounts(); //login - \OC_User::createUser('test', 'test'); + \OC::$server->getUserManager()->createUser('test', 'test'); \OC::$server->getSession()->set('user_id', 'test'); $this->storage = new \OC\Files\Storage\Temporary(array()); diff --git a/tests/scannertest.php b/tests/scannertest.php index 041d7d2..ae73ca3 100644 --- a/tests/scannertest.php +++ b/tests/scannertest.php @@ -46,7 +46,7 @@ class Test_Files_Antivirus_ScannerTest extends \OCA\Files_Antivirus\Tests\Testba $results = $userManager->search('', 1, 0); if (!count($results)) { - \OC_User::createUser('test', 'test'); + \OC::$server->getUserManager()->createUser('test', 'test'); } $this->scannerFactory = new ScannerFactory( $this->config, |