Browse Source

Fix failing tests after db split

tags/v10.0RC1
Roeland Jago Douma 8 years ago
parent
commit
f2d091a963
No account linked to committer's email address
2 changed files with 5 additions and 5 deletions
  1. 4
    4
      tests/lib/User/ManagerTest.php
  2. 1
    1
      tests/lib/UserTest.php

+ 4
- 4
tests/lib/User/ManagerTest.php View 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')

+ 1
- 1
tests/lib/UserTest.php View 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;

Loading…
Cancel
Save