ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
p
r
s
t
w
+
Functions
_
a
b
c
f
g
h
i
r
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
NullObjectiveTest.php
Go to the documentation of this file.
1
<?php
2
3
/* Copyright (c) 2019 Richard Klees <richard.klees@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4
5
namespace
ILIAS\Tests\Setup\Objective
;
6
7
use
ILIAS\Setup
;
8
use
ILIAS\Setup\Objective
;
9
use
PHPUnit\Framework\TestCase
;
10
11
class
NullObjectiveTest
extends
TestCase
12
{
16
protected
$o
;
17
18
public
function
setUp
() : void
19
{
20
$this->o =
new
Objective\NullObjective();
21
}
22
23
public
function
testGetHash
() : void
24
{
25
$this->assertIsString($this->o->getHash());
26
}
27
28
public
function
testGetLabel
() : void
29
{
30
$this->assertEquals(
"Nothing to do."
, $this->o->getLabel());
31
}
32
33
public
function
testIsNotable
() : void
34
{
35
$this->assertFalse($this->o->isNotable());
36
}
37
38
public
function
testGetPreconditions
() : void
39
{
40
$env = $this->createMock(Setup\Environment::class);
41
42
$pre = $this->o->getPreconditions($env);
43
$this->assertEquals([], $pre);
44
}
45
46
public
function
testAchieve
() : void
47
{
48
$env = $this->createMock(Setup\Environment::class);
49
50
$res
= $this->o->achieve($env);
51
$this->assertSame($env,
$res
);
52
}
53
}
ILIAS\Tests\Setup\Objective\NullObjectiveTest\testIsNotable
testIsNotable()
Definition:
NullObjectiveTest.php:33
ILIAS\Tests\Setup\Objective\NullObjectiveTest\testGetHash
testGetHash()
Definition:
NullObjectiveTest.php:23
ILIAS\Tests\Setup\Objective\NullObjectiveTest\testGetLabel
testGetLabel()
Definition:
NullObjectiveTest.php:28
$res
foreach($_POST as $key=> $value) $res
Definition:
save_question_post_data.php:15
ILIAS\Tests\Setup\Objective\NullObjectiveTest\testAchieve
testAchieve()
Definition:
NullObjectiveTest.php:46
ILIAS\Setup\Objective
Definition:
AdminConfirmedObjective.php:5
ILIAS\Setup
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
AdminInteraction.php:5
ILIAS\Tests\Setup\Objective
Definition:
AdminConfirmedObjectiveTest.php:5
ILIAS\Tests\Setup\Objective\NullObjectiveTest\setUp
setUp()
Definition:
NullObjectiveTest.php:18
ILIAS\Tests\Setup\Objective\NullObjectiveTest\$o
$o
Definition:
NullObjectiveTest.php:16
ILIAS\Tests\Setup\Objective\NullObjectiveTest\testGetPreconditions
testGetPreconditions()
Definition:
NullObjectiveTest.php:38
TestCase
ILIAS\Tests\Setup\Objective\NullObjectiveTest
Definition:
NullObjectiveTest.php:11
tests
Setup
Objective
NullObjectiveTest.php
Generated on Thu Apr 17 2025 21:01:46 for ILIAS by
1.8.13 (using
Doxyfile
)