function testGetProfileLink() { $User = new \App\Models\User(['name' => 'TestUser', 'avatar_url' => '/img/guest.svg']); $result = $User->getProfileLink(); static::assertEquals("<a href='/@TestUser' class='da-userlink'><span class='name'>TestUser</span></a>", $result, "Testing default parameter return value format"); $result = $User->getProfileLink(\App\Models\User::LINKFORMAT_FULL); static::assertEquals("<a href='/@TestUser' class='da-userlink with-avatar'><img src='/img/guest.svg' class='avatar' alt='avatar'> <span class='name'>TestUser</span></a>", $result, "Testing full format return value"); }