ILIAS  Release_4_0_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 ()
 testDeletion ()
 testLikeDeletion ()

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.

References ilUnitUtil\performInitialisation().

{
include_once("./Services/PHPUnit/classes/class.ilUnitUtil.php");
}

+ Here is the call graph for this function:

ilSettingTest::testDeletion ( )

Definition at line 43 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 ( )

Definition at line 61 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("fooplus")."-".$set->get("barplus");
$this->assertEquals("-foo", $value);
}
ilSettingTest::testSetGetSettings ( )

Definition at line 34 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: