From bfb4c511b6a4c9db63683a0e328814a0eaa19d73 Mon Sep 17 00:00:00 2001 From: raviks789 Date: Tue, 29 Oct 2024 16:37:43 +0100 Subject: [PATCH] StateBadgesTest: Account for change in visibility for `createLink` method --- test/php/library/Icingadb/Common/StateBadgesTest.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/php/library/Icingadb/Common/StateBadgesTest.php b/test/php/library/Icingadb/Common/StateBadgesTest.php index b535e655e..0b9fd5e22 100644 --- a/test/php/library/Icingadb/Common/StateBadgesTest.php +++ b/test/php/library/Icingadb/Common/StateBadgesTest.php @@ -9,6 +9,7 @@ use ipl\Stdlib\Filter; use ipl\Web\Filter\QueryString; use ipl\Web\Url; +use ipl\Web\Widget\Link; use PHPUnit\Framework\TestCase; class StateBadgesTest extends TestCase @@ -21,7 +22,7 @@ public function testCreateLinkRendersBaseFilterCorrectly() Filter::equal('bar', 'foo') )); - $link = $stateBadges->createLink('test', Filter::equal('rab', 'oof')); + $link = $stateBadges->generateLink('test', Filter::equal('rab', 'oof')); $this->assertSame( 'rab=oof&(foo=bar|bar=foo)', @@ -81,6 +82,11 @@ protected function getStateInt(string $state): int { return 0; } + + public function generateLink($content, Filter\Rule $filter = null): Link + { + return parent::createLink($content, $filter); + } }; } }