Fix avatar/gravatar call throwing error

This commit is contained in:
Nabeel Shahzad
2020-03-25 10:58:03 -04:00
parent eafea01e22
commit cce575c1a6
4 changed files with 17 additions and 8 deletions

View File

@@ -85,9 +85,11 @@ class SimBriefTest extends TestCase
$this->assertNotNull($flight['simbrief']);
$this->assertEquals($briefing->id, $flight['simbrief']['id']);
$url = str_replace('http://', 'https://', $flight['simbrief']['url']);
$this->assertEquals(
'http://localhost/api/flights/'.$briefing->id.'/briefing',
$flight['simbrief']['url']
'https://localhost/api/flights/'.$briefing->id.'/briefing',
$url
);
// Retrieve the briefing via API, and then check the doctype