Skip to content

Commit

Permalink
Fix placeholder test (again again)
Browse files Browse the repository at this point in the history
  • Loading branch information
edoardocavazza committed Nov 5, 2024
1 parent cbbd516 commit 63f93b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/TestCase/View/Helper/PlaceholdersHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ public function testGetTemplate()
*/
public function testDefaultTemplater()
{
$contents = $this->Placeholders::defaultTemplater($this->object, 'body', [$this->image1, $this->image2], fn ($entity, $params) => sprintf('%s %s', $entity->title, $params ? json_encode($params) : ''));
$this->assertSame('<p>Hello World image1 </p>image2 "{\"class\":\"test\"}"', $contents);
$contents = $this->Placeholders::defaultTemplater($this->object, 'body', [$this->image1, $this->image2], fn ($entity, $params) => sprintf('%s %s', $entity->title, $params ? $params : ''));
$this->assertSame('<p>Hello World image1 </p>image2 {"class":"test"}', $contents);
}

/**
Expand Down

0 comments on commit 63f93b2

Please sign in to comment.