FiltersWorkAsExpected: test Icinga Web filters...

...for some important cases
This commit is contained in:
Thomas Gelf 2022-02-03 11:03:54 +01:00
parent b04fe28932
commit b6f6b786c5

View File

@ -0,0 +1,15 @@
<?php
namespace Tests\Icinga\Module\Director\Application;
use Icinga\Data\Filter\Filter;
use Icinga\Module\Director\Test\BaseTestCase;
class FiltersWorkAsExpectedTest extends BaseTestCase
{
public function testBasics()
{
$filter = Filter::fromQueryString('a');
$this->assertTrue($filter->matches((object) ['a' => '1']), '1 is not true');
}
}