Fixing tests
This commit is contained in:
parent
7e49ee8fb5
commit
ff9786f3c3
|
@ -2569,7 +2569,7 @@ class ApiTest extends FixtureTest
|
|||
{
|
||||
$this->app->setLoggedInUserNickname($this->selfUser['nick']);
|
||||
$_POST['text'] = 'message_text';
|
||||
$_POST['screen_name'] = $this->friendUser['nick'];
|
||||
$_POST['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']);
|
||||
|
@ -2585,7 +2585,7 @@ class ApiTest extends FixtureTest
|
|||
{
|
||||
$this->app->setLoggedInUserNickname($this->selfUser['nick']);
|
||||
$_POST['text'] = 'message_text';
|
||||
$_POST['screen_name'] = $this->friendUser['nick'];
|
||||
$_POST['user_id'] = $this->friendUser['id'];
|
||||
$_REQUEST['title'] = 'message_title';
|
||||
$result = api_direct_messages_new('json');
|
||||
self::assertStringContainsString('message_text', $result['direct_message']['text']);
|
||||
|
@ -2603,7 +2603,7 @@ class ApiTest extends FixtureTest
|
|||
{
|
||||
$this->app->setLoggedInUserNickname($this->selfUser['nick']);
|
||||
$_POST['text'] = 'message_text';
|
||||
$_POST['screen_name'] = $this->friendUser['nick'];
|
||||
$_POST['user_id'] = $this->friendUser['id'];
|
||||
$result = api_direct_messages_new('rss');
|
||||
self::assertXml($result, 'direct-messages');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user