From 21481208830bae4ebb1a700246a91a43c66bbecc Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Tue, 11 Aug 2015 13:01:37 +0200 Subject: [provisioning api] Test for correct displayname --- apps/provisioning_api/tests/userstest.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apps/provisioning_api/tests') diff --git a/apps/provisioning_api/tests/userstest.php b/apps/provisioning_api/tests/userstest.php index d91160fc53a..6dd4f623f93 100644 --- a/apps/provisioning_api/tests/userstest.php +++ b/apps/provisioning_api/tests/userstest.php @@ -162,12 +162,15 @@ class UsersTest extends TestCase { public function testGetUserOnSelf() { $user = $this->generateUsers(); + $user->setDisplayName('foobar'); $this->userSession->setUser($user); $params['userid'] = $user->getUID(); $result = $this->api->getUser($params); $this->assertInstanceOf('OC_OCS_Result', $result); $this->assertTrue($result->succeeded()); $data = $result->getData(); + + $this->assertEquals('foobar', $data['displayname']); } public function testGetUserOnNonExistingUser() { -- cgit v1.2.3