Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cappuc committed Dec 30, 2024
1 parent 92b8517 commit b1dde97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?php

namespace Keepsuit\Liquid\Filters;
namespace Keepsuit\Liquid\Filters\Custom;

use Keepsuit\Liquid\Contracts\AsLiquidValue;
use Keepsuit\Liquid\Filters\FiltersProvider;

class TernaryFilter extends FiltersProvider
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Integration/CustomFiltersTest.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

beforeEach(function () {
$this->factory = \Keepsuit\Liquid\TemplateFactory::new()
$this->factory = \Keepsuit\Liquid\EnvironmentFactory::new()
->setStrictVariables(true)
->registerFilter(\Keepsuit\Liquid\Filters\TernaryFilter::class);
->registerFilters(\Keepsuit\Liquid\Filters\Custom\TernaryFilter::class);
});

test('ternary', function () {
Expand Down

0 comments on commit b1dde97

Please sign in to comment.