We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da93045 commit 8a23d7dCopy full SHA for 8a23d7d
tests/Intercom/Resources/UserTest.php
@@ -118,11 +118,12 @@ public function testGetUsersBySegmentID()
118
$this->assertRequest('GET', '/users?segment_id=20');
119
}
120
121
- /**
122
- * @expectedException \Guzzle\Service\Exception\ValidationException
123
- */
124
public function testUpdateUserNoID()
125
{
126
- $this->client->updateUser();
+ $this->setMockResponse($this->client, 'User/User.txt');
+ $response = $this->client->updateUser(['user_id' => '1234', 'hi' => 'hello', 'new_session' => true]);
+
+ $this->assertRequest('POST', '/users');
127
+ $this->assertRequestJson(['user_id' => '1234', 'new_session' => true]);
128
129
0 commit comments