mirror of
https://github.com/friendica/friendica
synced 2025-04-23 01:50:10 +00:00
Mirate API\SavedSearches tests
This commit is contained in:
parent
de1e839a2b
commit
23939cd0f1
2 changed files with 22 additions and 14 deletions
22
tests/src/Module/Api/Twitter/SavedSearchesTest.php
Normal file
22
tests/src/Module/Api/Twitter/SavedSearchesTest.php
Normal file
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Test\src\Module\Api\Twitter;
|
||||
|
||||
use Friendica\Module\Api\Twitter\SavedSearches;
|
||||
use Friendica\Test\src\Module\Api\ApiTest;
|
||||
use Friendica\Test\Util\ApiResponseDouble;
|
||||
|
||||
class SavedSearchesTest extends ApiTest
|
||||
{
|
||||
public function test()
|
||||
{
|
||||
SavedSearches::rawContent(['extension' => 'json']);
|
||||
|
||||
$result = json_decode(ApiResponseDouble::getOutput());
|
||||
|
||||
self::assertEquals(1, $result[0]->id);
|
||||
self::assertEquals(1, $result[0]->id_str);
|
||||
self::assertEquals('Saved search', $result[0]->name);
|
||||
self::assertEquals('Saved search', $result[0]->query);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue