mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
fix: Fix UserTest to return valid configuration values
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
4924fe9a12
commit
3289cbcbd3
1 changed files with 6 additions and 0 deletions
|
|
@ -929,6 +929,12 @@ class UserTest extends TestCase {
|
|||
$this->equalTo('enabled'),
|
||||
'true'
|
||||
);
|
||||
/* dav event listener gets the manager list from config */
|
||||
$config->expects(self::any())
|
||||
->method('getUserValue')
|
||||
->willReturnCallback(
|
||||
fn ($user, $app, $key, $default) => ($key === 'enabled' ? 'false' : $default)
|
||||
);
|
||||
|
||||
$user = new User('foo', $backend, $this->dispatcher, null, $config);
|
||||
$user->setEnabled(true);
|
||||
|
|
|
|||
Loading…
Reference in a new issue