]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix failing tests after db split 387/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Wed, 13 Jul 2016 07:26:19 +0000 (09:26 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Wed, 13 Jul 2016 07:26:19 +0000 (09:26 +0200)
tests/lib/User/ManagerTest.php
tests/lib/UserTest.php

index 2a6cdbc1355f874b76ab913c2d9c53f811b8f6f2..f1b520ee0cf57595a4a9d6cf68de09c25609a6e4 100644 (file)
@@ -129,7 +129,7 @@ class ManagerTest extends \Test\TestCase {
                $backend->expects($this->any())
                        ->method('implementsActions')
                        ->will($this->returnCallback(function ($actions) {
-                               if ($actions === \OC_USER_BACKEND_CHECK_PASSWORD) {
+                               if ($actions === \OC\USER\BACKEND::CHECK_PASSWORD) {
                                        return true;
                                } else {
                                        return false;
@@ -384,7 +384,7 @@ class ManagerTest extends \Test\TestCase {
 
                $backend->expects($this->once())
                        ->method('implementsActions')
-                       ->with(\OC_USER_BACKEND_COUNT_USERS)
+                       ->with(\OC\USER\BACKEND::COUNT_USERS)
                        ->will($this->returnValue(true));
 
                $backend->expects($this->once())
@@ -413,7 +413,7 @@ class ManagerTest extends \Test\TestCase {
 
                $backend1->expects($this->once())
                        ->method('implementsActions')
-                       ->with(\OC_USER_BACKEND_COUNT_USERS)
+                       ->with(\OC\USER\BACKEND::COUNT_USERS)
                        ->will($this->returnValue(true));
                $backend1->expects($this->once())
                        ->method('getBackendName')
@@ -426,7 +426,7 @@ class ManagerTest extends \Test\TestCase {
 
                $backend2->expects($this->once())
                        ->method('implementsActions')
-                       ->with(\OC_USER_BACKEND_COUNT_USERS)
+                       ->with(\OC\USER\BACKEND::COUNT_USERS)
                        ->will($this->returnValue(true));
                $backend2->expects($this->once())
                        ->method('getBackendName')
index 456e864ab75a6bacb9af2377ef76f29b30c364c1..7a033c2921e9e0dcb3d932ce6c005bf7d342306b 100644 (file)
@@ -41,7 +41,7 @@ class UserTest extends TestCase {
                $this->backend->expects($this->any())
                        ->method('implementsActions')
                        ->will($this->returnCallback(function ($actions) {
-                               if ($actions === \OC_USER_BACKEND_CHECK_PASSWORD) {
+                               if ($actions === \OC\USER\BACKEND::CHECK_PASSWORD) {
                                        return true;
                                } else {
                                        return false;