Skip to content

Commit

Permalink
test: add test for Filter instance
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Nov 12, 2023
1 parent 0dc64cd commit 7dc7087
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 @@ -81,6 +81,14 @@ public function testCallerSupportClassname(): void
$this->assertSame('http://hellowworld.com', $result->getBody());
}

public function testCallerSupportsFilterInstance(): void
{
$caller = $this->getFilterCaller(new Customfilter(), '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 7dc7087

Please sign in to comment.