]> git.mxchange.org Git - friendica.git/commitdiff
Added test data
authorMichael <heluecht@pirati.ca>
Sun, 30 Jan 2022 16:21:07 +0000 (16:21 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 30 Jan 2022 16:21:07 +0000 (16:21 +0000)
tests/src/Model/TagTest.php

index 1bd19335236ab9a43403532e4abe78ef756aeb9f..aed2db319a04e291d109488538f32ab597d7e976 100644 (file)
@@ -33,7 +33,15 @@ class TagTest extends TestCase
        {
                $body = '![url=https://pirati.ca/profile/test1]Testgruppe 1b[/url] Test, please ignore';
                $tags = Tag::getFromBody($body);
-               // Some expectations here
-               self::markTestIncomplete('Needs knowledge.');
+        $expected = [
+            [
+                '![url=https://pirati.ca/profile/test1]Testgruppe 1b[/url]',
+                '!',
+                'https://pirati.ca/profile/test1',
+                'Testgruppe 1b'
+            ]
+        ];
+
+        self::assertEquals($expected, $tags);
        }
 }