Fix http_code usage in case of failures
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user