Fixing (some) tests
This commit is contained in:
parent
f5a3f8039d
commit
998964c733
|
@ -2514,7 +2514,7 @@ class ApiTest extends FixtureTest
|
|||
{
|
||||
$this->app->setLoggedInUserNickname($this->selfUser['nick']);
|
||||
$_POST['text'] = 'message_text';
|
||||
$_POST['user_id'] = $this->friendUser['id'];
|
||||
$_REQUEST['user_id'] = $this->friendUser['id'];
|
||||
$result = api_direct_messages_new('json');
|
||||
self::assertStringContainsString('message_text', $result['direct_message']['text']);
|
||||
self::assertEquals('selfcontact', $result['direct_message']['sender_screen_name']);
|
||||
|
@ -2530,7 +2530,7 @@ class ApiTest extends FixtureTest
|
|||
{
|
||||
$this->app->setLoggedInUserNickname($this->selfUser['nick']);
|
||||
$_POST['text'] = 'message_text';
|
||||
$_POST['user_id'] = $this->friendUser['id'];
|
||||
$_REQUEST['user_id'] = $this->friendUser['id'];
|
||||
$_REQUEST['title'] = 'message_title';
|
||||
$result = api_direct_messages_new('json');
|
||||
self::assertStringContainsString('message_text', $result['direct_message']['text']);
|
||||
|
@ -2548,7 +2548,7 @@ class ApiTest extends FixtureTest
|
|||
{
|
||||
$this->app->setLoggedInUserNickname($this->selfUser['nick']);
|
||||
$_POST['text'] = 'message_text';
|
||||
$_POST['user_id'] = $this->friendUser['id'];
|
||||
$_REQUEST['user_id'] = $this->friendUser['id'];
|
||||
$result = api_direct_messages_new('rss');
|
||||
self::assertXml($result, 'direct-messages');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue