ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilSettingTest Class Reference
+ Inheritance diagram for ilSettingTest:
+ Collaboration diagram for ilSettingTest:

Public Member Functions

 testSetGetSettings ()
 IL_Init
 testDeletion ()
 IL_Init
 testLikeDeletion ()
 IL_Init

Protected Member Functions

 setUp ()

Protected Attributes

 $backupGlobals = FALSE

Detailed Description

Definition at line 24 of file ilSettingTest.php.

Member Function Documentation

ilSettingTest::setUp ( )
protected

Definition at line 28 of file ilSettingTest.php.

{
include_once("./Services/PHPUnit/classes/class.ilUnitUtil.php");
ilUnitUtil::performInitialisation();
}
ilSettingTest::testDeletion ( )

IL_Init

Definition at line 49 of file ilSettingTest.php.

{
// set two things for two modules
$set = new ilSetting("test_module");
$set->set("foo", "bar");
$set = new ilSetting("test_module2");
$set->set("foo2", "bar2");
$set = new ilSetting("test_module");
$set->deleteAll();
$value = $set->get("foo", false, true)."-"; // should be "-" now
$set = new ilSetting("test_module2");
$value.= $set->get("foo2"); // should be "-bar2" now
$this->assertEquals("-bar2", $value);
}
ilSettingTest::testLikeDeletion ( )

IL_Init

Definition at line 70 of file ilSettingTest.php.

{
$set = new ilSetting("test_module3");
$set->set("foo", "plus");
$set->set("fooplus", "bar");
$set->set("barplus", "foo");
$set->deleteLike("foo%");
$value = $set->get("foo")."-".
$set->get("fooplus")."-".
$set->get("barplus");
$this->assertEquals("--foo", $value);
}
ilSettingTest::testSetGetSettings ( )

IL_Init

Definition at line 37 of file ilSettingTest.php.

{
$set = new ilSetting("test_module");
$set->set("foo", "bar");
$value = $set->get("foo");
$this->assertEquals("bar", $value);
}

Field Documentation

ilSettingTest::$backupGlobals = FALSE
protected

Definition at line 26 of file ilSettingTest.php.


The documentation for this class was generated from the following file: