Definition at line 24 of file ilSettingTest.php.
◆ setUp()
Definition at line 28 of file ilSettingTest.php.
29 {
30 include_once("./Services/PHPUnit/classes/class.ilUnitUtil.php");
31 ilUnitUtil::performInitialisation();
32 }
◆ testDeletion()
ilSettingTest::testDeletion |
( |
| ) |
|
@group IL_Init
Definition at line 49 of file ilSettingTest.php.
50 {
51
53 $set->set("foo", "bar");
55 $set->set("foo2", "bar2");
57 $set->deleteAll();
58
59 $value = $set->get("foo", false, true)."-";
60
62 $value.= $set->get("foo2");
63
64 $this->assertEquals("-bar2", $value);
65 }
◆ testLikeDeletion()
ilSettingTest::testLikeDeletion |
( |
| ) |
|
@group IL_Init
Definition at line 70 of file ilSettingTest.php.
71 {
73 $set->set("foo", "plus");
74 $set->set("fooplus", "bar");
75 $set->set("barplus", "foo");
76 $set->deleteLike("foo%");
77
78 $value = $set->get("foo")."-".
79 $set->get("fooplus")."-".
80 $set->get("barplus");
81
82 $this->assertEquals("--foo", $value);
83 }
◆ testSetGetSettings()
ilSettingTest::testSetGetSettings |
( |
| ) |
|
@group IL_Init
Definition at line 37 of file ilSettingTest.php.
38 {
40 $set->set("foo", "bar");
41 $value = $set->get("foo");
42
43 $this->assertEquals("bar", $value);
44 }
◆ $backupGlobals
ilSettingTest::$backupGlobals = FALSE |
|
protected |
The documentation for this class was generated from the following file: