Skip to content

Commit

Permalink
Fix tests not running
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmitchell committed Jun 21, 2024
1 parent 02d2732 commit f9452a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion tests/Antlers/ParserTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Tests\Antlers;

use PHPUnit\Framework\Attributes\Test;
use Statamic\Facades\YAML;
use Statamic\Fields\Blueprint;
use Statamic\Fields\BlueprintRepository;
Expand Down
4 changes: 3 additions & 1 deletion tests/Antlers/Runtime/TemplateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2345,7 +2345,6 @@ public function it_compares_to_a_string_that_looks_like_array_access()
/**
* @see https://github.com/statamic/cms/issues/3374
**/
#[Test]
public function it_parses_single_and_tag_pairs_with_modifiers()
{
$data = ['items' => ['one', 'two', 'three']];
Expand Down Expand Up @@ -2482,6 +2481,7 @@ private function assertEqualsWithCollapsedNewlines($expected, $actual)
$this->assertEquals($expected, $actual);
}

#[Test]
public function test_rendering_a_non_array_variable_reports_current_file()
{
$this->markTestSkipped(); // todo
Expand Down Expand Up @@ -2511,11 +2511,13 @@ public function test_rendering_a_non_array_variable_reports_current_file()
$this->get('/home')->assertOk();
}

#[Test]
public function test_it_passes_data_to_php_when_enabled()
{
$this->assertEquals('hello', (string) $this->parser()->allowPhp(true)->parse('{{ associative }}<?php echo $one; ?>{{ /associative }}', $this->variables));
}

#[Test]
public function test_it_returns_escaped_content()
{
$input = 'Hey, look at that @{{ noun }}!';
Expand Down

0 comments on commit f9452a3

Please sign in to comment.