3 require_once
'Modules/IndividualAssessment/classes/Settings/class.ilIndividualAssessmentSettings.php';
4 require_once
'Modules/IndividualAssessment/classes/Settings/class.ilIndividualAssessmentSettingsStorageDB.php';
5 require_once
'Modules/IndividualAssessment/classes/class.ilObjIndividualAssessment.php';
20 PHPUnit_Framework_Error_Deprecated::$enabled =
false;
21 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
22 ilUnitUtil::performInitialisation();
25 self::$iass ->setDescription(
"iass_test_desc");
26 self::$iass ->create();
27 self::$iass ->createReference();
28 self::$iass ->putInTree(ROOT_FOLDER_ID);
29 self::$iass_id = self::$iass->getId();
37 $settings = self::$storage->loadSettings(self::$iass);
38 $content = $settings->content();
39 $record_template = $settings->recordTemplate();
50 $settings = $settings->setContent(
'some_content')->setRecordTemplate(
'some_template');
51 $this->assertEquals($settings->content(),
'some_content');
52 $this->assertEquals($settings->recordTemplate(),
'some_template');
53 self::$storage->updateSettings($settings);
61 $settings = self::$storage->loadSettings(self::$iass);
62 $this->assertEquals($settings->content(),
'some_content');
63 $this->assertEquals($settings->recordTemplate(),
'some_template');
73 $settings =
$iass->getSettings();
74 $this->assertEquals($settings->content(),
'some_content');
75 $this->assertEquals($settings->recordTemplate(),
'some_template');
76 $settings = $settings->setContent(
'some_content2')->setRecordTemplate(
'some_template2');
79 $settings =
$iass->getSettings();
80 $this->assertEquals($settings->content(),
'some_content2');
81 $this->assertEquals($settings->recordTemplate(),
'some_template2');
91 self::$iass->delete();
92 $settings = self::$storage->loadSettings(self::$iass);
93 $this->assertEquals($settings->content(),
'');
94 $this->assertEquals($settings->recordTemplate(),
'');
test_settings_load()
test_settings_change
For the purpose of streamlining the grading and learning-process status definition outside of tests...
A settings storage handler to write iass settings to db.
test_settings_update()
test_settings_load
disabled needsInstalledILIAS
test_settings_change($settings)
test_create_settings
setTitle($a_title)
set object title
static setUpBeforeClass()
const DEF_RECORD_TEMPLATE
test_settings_delete($settings)
test_settings_update