Skip to content

Commit

Permalink
fix: broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kreyu committed Feb 19, 2024
1 parent 42e0df1 commit 33f8dd0
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions tests/Unit/Filter/FilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,8 @@ public function testFormNameStripsDotsFromFilterName(): void
public function testQueryPathDefaultsToFilterName()
{
$this->filterConfig->method('getName')->willReturn('foo');
$this->filterConfig->method('getOption')->willReturnCallback(function (string $name, string $default) {
$this->assertEquals('query_path', $name);
$this->assertEquals('foo', $default);

return $default;
});

$this->createFilter()->getQueryPath();
$this->assertEquals('foo', $this->createFilter()->getQueryPath());
}

public function testHandleDispatchesEvents(): void
Expand Down

0 comments on commit 33f8dd0

Please sign in to comment.