aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/http
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-12-16 14:04:32 +0100
committerArthurHoaro <arthur@hoa.ro>2020-12-16 14:04:32 +0100
commit6a3a78d023aa320138bb88505b58347db268264a (patch)
tree127cbde2d900fb1cf9d2f5999941dfe3d79affbd /tests/http
parente4b8330e459b598328bf250208386c06ec257b08 (diff)
downloadShaarli-6a3a78d023aa320138bb88505b58347db268264a.tar.gz
Shaarli-6a3a78d023aa320138bb88505b58347db268264a.tar.zst
Shaarli-6a3a78d023aa320138bb88505b58347db268264a.zip
Fix: synchronous metadata retrieval is failing in strict mode
Metadata can now only be string or null. Fixes #1653
Diffstat (limited to 'tests/http')
-rw-r--r--tests/http/MetadataRetrieverTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/http/MetadataRetrieverTest.php b/tests/http/MetadataRetrieverTest.php
index 3c9eaa0e..cae65091 100644
--- a/tests/http/MetadataRetrieverTest.php
+++ b/tests/http/MetadataRetrieverTest.php
@@ -41,7 +41,7 @@ class MetadataRetrieverTest extends TestCase
41 $remoteCharset = 'utf-8'; 41 $remoteCharset = 'utf-8';
42 42
43 $expectedResult = [ 43 $expectedResult = [
44 'title' => $remoteTitle, 44 'title' => trim($remoteTitle),
45 'description' => $remoteDesc, 45 'description' => $remoteDesc,
46 'tags' => $remoteTags, 46 'tags' => $remoteTags,
47 ]; 47 ];