From: Michael Date: Sun, 30 Jan 2022 16:21:07 +0000 (+0000) Subject: Added test data X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4f60b1660eb2cab4c31873347fbd0999a625adb3;p=friendica.git Added test data --- diff --git a/tests/src/Model/TagTest.php b/tests/src/Model/TagTest.php index 1bd1933523..aed2db319a 100644 --- a/tests/src/Model/TagTest.php +++ b/tests/src/Model/TagTest.php @@ -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); } }