@@ -35,10 +35,10 @@ public function testGetUserByUserID()
3535 public function testCreateUser ()
3636 {
3737 $ this ->setMockResponse ($ this ->client , 'User/User.txt ' );
38- $ response =
$ this ->
client ->
createUser ([
'name ' =>
'Joe Schmoe ' ,
'email ' =>
'[email protected] ' ,
'hi ' =>
'hello ' ]);
38+ $ response =
$ this ->
client ->
createUser ([
'name ' =>
'Joe Schmoe ' ,
'email ' =>
'[email protected] ' ,
'hi ' =>
'hello ' , ' update_last_request_at ' => true ]);
3939
4040 $ this ->assertRequest ('POST ' , '/users ' );
41- $ this ->
assertRequestJson ([
'email ' =>
'[email protected] ' ,
'name ' =>
'Joe Schmoe ' ]);
41+ $ this ->
assertRequestJson ([
'email ' =>
'[email protected] ' ,
'name ' =>
'Joe Schmoe ' , ' update_last_request_at ' => true ]);
4242
4343 $ this ->assertInstanceOf ('\Guzzle\Service\Resource\Model ' , $ response );
4444 $ this ->assertEquals ('Joe Schmoe ' , $ response ['name ' ]);
@@ -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 ' ]);
@@ -124,4 +124,4 @@ public function testUpdateUserNoID()
124124 {
125125 $ this ->client ->updateUser ();
126126 }
127- }
127+ }
0 commit comments