mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-27 07:44:05 +02:00
FiltersWorkAsExpected: test Icinga Web filters...
...for some important cases
This commit is contained in:
parent
b04fe28932
commit
b6f6b786c5
@ -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');
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user