- /*
- DI::args()->setArgv(['', '', '', 1]);
- $_REQUEST['conversation'] = 1;
- $result = api_statuses_show('json');
- self::assertNotEmpty($result['status']);
- foreach ($result['status'] as $status) {
- self::assertStatus($status);
+ $show = new Show(DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), ['REQUEST_METHOD' => Router::GET]);
+ $response = $show->run(['id' => 1, 'conversation' => 1]);
+
+ $json = $this->toJson($response);
+
+ self::assertIsArray($json);
+
+ foreach ($json as $status) {
+ self::assertIsInt($status->id);
+ self::assertIsString($status->text);