ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
◀ ilDoc Overview
IgnoreTest.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Tests\Services\Database\Integrity
;
22
23
use
PHPUnit\Framework\TestCase
;
24
use
ILIAS\Services\Database\Integrity\Ignore
;
25
26
class
IgnoreTest
extends
TestCase
27
{
28
public
function
testConstruct
(): void
29
{
30
$ignore =
new
Ignore
();
31
$this->assertInstanceOf(Ignore::class, $ignore);
32
}
33
34
public
function
testValues
(): void
35
{
36
$ignore =
new
Ignore
(
'a'
,
'b'
,
'c'
);
37
$this->assertEquals([
'!= a'
,
'!= b'
,
'!= c'
], $ignore->values());
38
}
39
40
public
function
testValuesWithNull
(): void
41
{
42
$ignore =
new
Ignore
(
'a'
, null,
'c'
);
43
$this->assertEquals([
'!= a'
,
'IS NOT NULL'
,
'!= c'
], $ignore->values());
44
}
45
}
Ignore
ILIAS\Tests\Services\Database\Integrity\IgnoreTest
Definition:
IgnoreTest.php:26
ILIAS\Services\Database\Integrity\Ignore
Definition:
Ignore.php:23
ILIAS\Tests\Services\Database\Integrity\IgnoreTest\testValuesWithNull
testValuesWithNull()
Definition:
IgnoreTest.php:40
ILIAS\Tests\Services\Database\Integrity
Definition:
AssociationTest.php:21
ILIAS\Tests\Services\Database\Integrity\IgnoreTest\testConstruct
testConstruct()
Definition:
IgnoreTest.php:28
ILIAS\Tests\Services\Database\Integrity\IgnoreTest\testValues
testValues()
Definition:
IgnoreTest.php:34
TestCase
Services
Database
test
Integrity
IgnoreTest.php
Generated on Wed Sep 10 2025 14:11:27 for ILIAS by
1.8.13 (using
Doxyfile
)