Fix failing tests after db split

This commit is contained in:
Roeland Jago Douma 2016-07-13 09:26:19 +02:00
parent aa5158afc3
commit f2d091a963
No known key found for this signature in database
GPG Key ID: 1E152838F164D13B
2 changed files with 5 additions and 5 deletions

View File

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

View File

@ -41,7 +41,7 @@ class UserTest extends TestCase {
$this->backend->expects($this->any()) $this->backend->expects($this->any())
->method('implementsActions') ->method('implementsActions')
->will($this->returnCallback(function ($actions) { ->will($this->returnCallback(function ($actions) {
if ($actions === \OC_USER_BACKEND_CHECK_PASSWORD) { if ($actions === \OC\USER\BACKEND::CHECK_PASSWORD) {
return true; return true;
} else { } else {
return false; return false;