diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2016-07-13 09:26:19 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-07-13 09:26:19 +0200 |
commit | f2d091a963ab1fd76f36e6fcd038c0e6b63dba6f (patch) | |
tree | c208fb478b27857d64cf22ab34e045120ef81aa8 /tests | |
parent | aa5158afc361d9be6dea568dd9b4a21aa4d68be8 (diff) | |
download | nextcloud-server-f2d091a963ab1fd76f36e6fcd038c0e6b63dba6f.tar.gz nextcloud-server-f2d091a963ab1fd76f36e6fcd038c0e6b63dba6f.zip |
Fix failing tests after db split
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/User/ManagerTest.php | 8 | ||||
-rw-r--r-- | tests/lib/UserTest.php | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/lib/User/ManagerTest.php b/tests/lib/User/ManagerTest.php index 2a6cdbc1355..f1b520ee0cf 100644 --- a/tests/lib/User/ManagerTest.php +++ b/tests/lib/User/ManagerTest.php @@ -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') diff --git a/tests/lib/UserTest.php b/tests/lib/UserTest.php index 456e864ab75..7a033c2921e 100644 --- a/tests/lib/UserTest.php +++ b/tests/lib/UserTest.php @@ -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; |