Skip to content

Commit

Permalink
test: add test for classname filter
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Nov 12, 2023
1 parent 22bf430 commit 064b8b0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/system/Test/FilterTestTraitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,14 @@ public function testCallerSupportArray(): void
$this->assertSame('http://hellowworld.com', $result->getBody());
}

public function testCallerSupportClassname(): void
{
$caller = $this->getFilterCaller(Customfilter::class, 'before');
$result = $caller();

$this->assertSame('http://hellowworld.com', $result->getBody());
}

public function testCallerUsesClonedInstance(): void
{
$caller = $this->getFilterCaller('test-customfilter', 'before');
Expand Down

0 comments on commit 064b8b0

Please sign in to comment.