Skip to content

Commit

Permalink
[5.x] Fix failing Antlers tests (#9544)
Browse files Browse the repository at this point in the history
Fix failing Antlers tests
  • Loading branch information
duncanmcclean authored Feb 19, 2024
1 parent 91c0834 commit 9b08674
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Antlers/Runtime/TemplateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ public function ternary_escapes_quotes_properly()
/** @test */
public function ternary_condition_inside_parameter()
{
$this->app['statamic.tags']['test'] = \Tests\Fixtures\Addon\Tags\Test::class;
$this->app['statamic.tags']['test'] = \Tests\Fixtures\Addon\Tags\TestTags::class;

$this->assertEquals('yes', $this->renderString(
"{{ test variable='{{ good ? 'yes' : 'fail' }}' }}",
Expand Down Expand Up @@ -653,7 +653,7 @@ public function conditions_with_relaxed_modifiers()
public function tags_with_curlies_in_params_gets_parsed()
{
// the variables are inside Test@index
$this->app['statamic.tags']['test'] = \Tests\Fixtures\Addon\Tags\Test::class;
$this->app['statamic.tags']['test'] = \Tests\Fixtures\Addon\Tags\TestTags::class;

$template = "{{ test variable='{string}' }}";

Expand Down Expand Up @@ -736,7 +736,7 @@ public function empty_values_are_not_overridden_by_previous_iteration()
/** @test */
public function empty_values_are_not_overridden_by_previous_iteration_with_parsing()
{
$this->app['statamic.tags']['test'] = \Tests\Antlers\Fixtures\Addon\Tags\Test::class;
$this->app['statamic.tags']['test'] = \Tests\Antlers\Fixtures\Addon\Tags\TestTags::class;

// Variable name was changed from "loop" to "loopvar" compared to the original test to avoid a
// headache since the base test class is going to be loading all of the core Statamic Tags.
Expand Down

0 comments on commit 9b08674

Please sign in to comment.