diff --git a/tests/system/Test/FilterTestTraitTest.php b/tests/system/Test/FilterTestTraitTest.php index c05ea29ed340..300bc2b47425 100644 --- a/tests/system/Test/FilterTestTraitTest.php +++ b/tests/system/Test/FilterTestTraitTest.php @@ -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');