$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;
$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())
$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')
$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')
$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;