mirror of
https://github.com/friendica/friendica
synced 2025-04-20 14:30:11 +00:00
Reenable Twitter/Favorites tests
This commit is contained in:
parent
732ef70b8d
commit
f84c696925
3 changed files with 31 additions and 18 deletions
|
@ -115,14 +115,14 @@ abstract class ApiTest extends FixtureTest
|
|||
/**
|
||||
* Assert that a status array contains expected keys.
|
||||
*
|
||||
* @param array $status Status array
|
||||
* @param \stdClass $status Status
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function assertStatus(array $status = [])
|
||||
protected function assertStatus(\stdClass $status)
|
||||
{
|
||||
self::assertIsString($status['text'] ?? '');
|
||||
self::assertIsInt($status['id'] ?? '');
|
||||
self::assertIsString($status->text);
|
||||
self::assertIsInt($status->id);
|
||||
// We could probably do more checks here.
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue