Level 70
@sgfanega If you try this, does it work?
public function test_stock_predictions_api_response()
{
// Make the API call
$response = $this->get('api/stockpredictions');
// Check the response status
$response->assertStatus(Response::HTTP_OK);
$response->assertJson([
'data' => [
[
'id' => '1',
'attributes' => [
'ticker_symbol' => 'CVS',
'company_name' => 'CVS Health Corp',
'confidence' => '97.34',
]
]
]
]);
}