@@ -380,6 +380,10 @@ public function testCountUsersOneBackend() {
380380 ->with (\OC_USER_BACKEND_COUNT_USERS )
381381 ->will ($ this ->returnValue (true ));
382382
383+ $ backend ->expects ($ this ->once ())
384+ ->method ('getBackendName ' )
385+ ->will ($ this ->returnValue ('Mock_OC_User_Dummy ' ));
386+
383387 $ manager = new \OC \User \Manager ();
384388 $ manager ->registerBackend ($ backend );
385389
@@ -404,6 +408,9 @@ public function testCountUsersTwoBackends() {
404408 ->method ('implementsActions ' )
405409 ->with (\OC_USER_BACKEND_COUNT_USERS )
406410 ->will ($ this ->returnValue (true ));
411+ $ backend1 ->expects ($ this ->once ())
412+ ->method ('getBackendName ' )
413+ ->will ($ this ->returnValue ('Mock_OC_User_Dummy ' ));
407414
408415 $ backend2 = $ this ->getMock ('\OC_User_Dummy ' );
409416 $ backend2 ->expects ($ this ->once ())
@@ -414,6 +421,9 @@ public function testCountUsersTwoBackends() {
414421 ->method ('implementsActions ' )
415422 ->with (\OC_USER_BACKEND_COUNT_USERS )
416423 ->will ($ this ->returnValue (true ));
424+ $ backend2 ->expects ($ this ->once ())
425+ ->method ('getBackendName ' )
426+ ->will ($ this ->returnValue ('Mock_OC_User_Dummy ' ));
417427
418428 $ manager = new \OC \User \Manager ();
419429 $ manager ->registerBackend ($ backend1 );
0 commit comments