Merge pull request #9136 from nextcloud/bugfix/noid/fix_provisioning_integrationtests
The integrationtests expect a string
This commit is contained in:
commit
a655401382
2 changed files with 4 additions and 4 deletions
|
@ -92,7 +92,7 @@ abstract class AUserData extends OCSController {
|
|||
// Should be at least Admin Or SubAdmin!
|
||||
if( $this->groupManager->isAdmin($currentLoggedInUser->getUID())
|
||||
|| $this->groupManager->getSubAdmin()->isUserAccessible($currentLoggedInUser, $targetUserObject)) {
|
||||
$data['enabled'] = $this->config->getUserValue($targetUserObject->getUID(), 'core', 'enabled', 'true') === 'true';
|
||||
$data['enabled'] = $this->config->getUserValue($targetUserObject->getUID(), 'core', 'enabled', 'true');
|
||||
} else {
|
||||
// Check they are looking up themselves
|
||||
if($currentLoggedInUser->getUID() !== $targetUserObject->getUID()) {
|
||||
|
|
|
@ -732,7 +732,7 @@ class UsersControllerTest extends TestCase {
|
|||
->expects($this->at(0))
|
||||
->method('getUserValue')
|
||||
->with('UID', 'core', 'enabled', 'true')
|
||||
->will($this->returnValue('true'));
|
||||
->will($this->returnValue('true'));
|
||||
$this->config
|
||||
->expects($this->at(1))
|
||||
->method('getUserValue')
|
||||
|
@ -766,7 +766,7 @@ class UsersControllerTest extends TestCase {
|
|||
|
||||
$expected = [
|
||||
'id' => 'UID',
|
||||
'enabled' => true,
|
||||
'enabled' => 'true',
|
||||
'storageLocation' => '/var/www/newtcloud/data/UID',
|
||||
'lastLogin' => 1521191471000,
|
||||
'backend' => 'Database',
|
||||
|
@ -881,7 +881,7 @@ class UsersControllerTest extends TestCase {
|
|||
|
||||
$expected = [
|
||||
'id' => 'UID',
|
||||
'enabled' => true,
|
||||
'enabled' => 'true',
|
||||
'storageLocation' => '/var/www/newtcloud/data/UID',
|
||||
'lastLogin' => 1521191471000,
|
||||
'backend' => 'Database',
|
||||
|
|
Loading…
Reference in a new issue