3 namespace Friendica\Test\src\Navigation\Notifications\Entity;
5 use Friendica\Navigation\Notifications\Entity\Notify;
6 use Friendica\Test\FixtureTest;
8 class NotifyTest extends FixtureTest
10 public function dataFormatNotify(): array
15 'message' => '{0} commented in the thread "If my username causes a pop up in a piece of software, that softwar…" from <script>alert("Tek");</script>',
16 'assertion' => '<span class="contactname">Whiskers</span> commented in the thread "If my username causes a pop up in a piece of software, that softwar…" from <script>alert("Tek");</script>',
22 * @dataProvider dataFormatNotify
24 public function testFormatNotify(string $name, string $message, string $assertion)
26 self::assertEquals($assertion, Notify::formatMessage($name, $message));