Fix http_code usage in case of failures

This commit is contained in:
Philipp 2021-08-29 14:05:38 +02:00
parent 58001c729f
commit 0d6884a8a9
No known key found for this signature in database
GPG key ID: 9A28B7D4FF5667BD
2 changed files with 3 additions and 6 deletions

View file

@ -28,9 +28,6 @@ class HTTPClientTest extends MockedTest
new Response(301, ['Location' => 'https:///']),
]));
$httpClient = DI::httpClient();
$httpClient->get('https:///');
self::assertEquals(1,1);
self::assertFalse(DI::httpClient()->get('https://friendica.local')->isSuccess());
}
}