Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Cannaerts committed Nov 13, 2024
1 parent 1d34594 commit 2fa38cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/php/unit/Twig/LinkifyExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace App\Tests\Unit\Twig;

use App\Service\UrlTransformerService;
use App\Twig\LinkifyExtension;
use PHPUnit\Framework\TestCase;

Expand All @@ -14,7 +15,7 @@ class LinkifyExtensionTest extends TestCase
*/
public function itShouldWrapAnHtmlLinkInAnAnchorTag($rawHtml, $anchorHtml)
{
$filter = new LinkifyExtension();
$filter = new LinkifyExtension(new UrlTransformerService());

$this->assertEquals($anchorHtml, $filter->linkifyFilter($rawHtml));
}
Expand Down

0 comments on commit 2fa38cc

Please sign in to comment.