Skip to content

Commit cd1323b

Browse files
committed
add new_session to userUpdate
1 parent 1bd7751 commit cd1323b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/Intercom/Service/config/intercom_public_user.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,11 @@
193193
"location": "json",
194194
"required": false,
195195
"type": "string"
196+
},
197+
"new_session": {
198+
"location": "json",
199+
"required": false,
200+
"type": "boolean"
196201
}
197202
},
198203
"responseClass": "UserModel",

tests/Intercom/Resources/UserTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ public function testCreateUser()
4747
public function testUpdateUser()
4848
{
4949
$this->setMockResponse($this->client, 'User/User.txt');
50-
$response = $this->client->updateUser(['id' => '123456', 'user_id' => '1234', 'hi' => 'hello']);
50+
$response = $this->client->updateUser(['id' => '123456', 'user_id' => '1234', 'hi' => 'hello', 'new_session' => true]);
5151

5252
$this->assertRequest('POST', '/users');
53-
$this->assertRequestJson(['id' => '123456', 'user_id' => '1234']);
53+
$this->assertRequestJson(['id' => '123456', 'user_id' => '1234', 'new_session' => true]);
5454

5555
$this->assertInstanceOf('\Guzzle\Service\Resource\Model', $response);
5656
$this->assertEquals('Joe Schmoe', $response['name']);

0 commit comments

Comments
 (0)