Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "linkace",
"version": "2.5.1",
"version": "2.5.2",
"description": "A small, selfhosted bookmark manager with advanced features, built with Laravel and Docker",
"homepage": "https://github.com/Kovah/LinkAce",
"repository": {
Expand Down
6 changes: 3 additions & 3 deletions tests/Helper/HtmlMetaHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,18 +173,18 @@ public function test_request_error(): void
*/
public function test_connection_error(): void
{
$url = 'http://192.168.0.123:54623';
$url = 'http://example.com:54623';

Http::fake(function () {
throw new ConnectionException(
'cURL error 7: Failed to connect to 192.168.0.123 port 54623: Connection refused'
'cURL error 7: Failed to connect to example.com port 54623: Connection refused'
);
});

$result = (new HtmlMeta())->getFromUrl($url, true);

$this->assertArrayHasKey('title', $result);
$this->assertEquals('192.168.0.123', $result['title']);
$this->assertEquals('example.com', $result['title']);
$this->assertFalse($result['success']);

$flashMessage = session('flash_notification', collect())->first();
Expand Down
Loading