Browse Source

ApiTest #6274 #6275

pull/6482/head
root 2 years ago
committed by Hypolite Petovan
parent
commit
9c90cf7caf
1 changed files with 13 additions and 0 deletions
  1. +13
    -0
      tests/include/ApiTest.php

+ 13
- 0
tests/include/ApiTest.php View File

@ -1405,6 +1405,19 @@ class ApiTest extends DatabaseTest
}
}
/**
* Test the api_search() function with an q parameter contains hashtag.
* @return void
*/
public function testApiSearchWithHashtag()
{
$_REQUEST['q'] = '#friendica';
$result = api_search('json');
foreach ($result['status'] as $status) {
$this->assertStatus($status);
$this->assertContains('#friendica', $status['text'], null, true);
}
}
/**
* Test the api_search() function without an authenticated user.


Loading…
Cancel
Save