ILIAS  trunk Revision v11.0_alpha-1702-gfd3ecb7f852
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilStudyProgrammeAutoMailSettingsTest Class Reference
+ Inheritance diagram for ilStudyProgrammeAutoMailSettingsTest:
+ Collaboration diagram for ilStudyProgrammeAutoMailSettingsTest:

Public Member Functions

 testSuccessfulCreate ()
 
 testFailCreateWithInvalidReminderNotRestartedByUserDays ()
 
 testFailCreateWithInvalidProcessingEndsNotSuccessfulDays ()
 
 testSuccessfulWithSendReAssignedMail ()
 
 testSuccessfulWithReminderNotRestartedByUserDays ()
 
 testFailWithReminderNotRestartedByUserDays ()
 
 testSuccessfulWithProcessingEndsNotSuccessfulDays ()
 
 testFailWithProcessingEndsNotSuccessfulDays ()
 

Private Attributes

const VALID_SEND_REASSIGNED_MAIL_1 = true
 
const VALID_SEND_REASSIGNED_MAIL_2 = false
 
const VALID_REMINDER_NOT_RESTARTED_BY_USER_1 = null
 
const VALID_REMINDER_NOT_RESTARTED_BY_USER_2 = 2
 
const INVALID_REMINDER_NOT_RESTARTED_BY_USER = 0
 
const VALID_PROCESSING_ENDS_NOT_SUCCESSFUL_DAYS_1 = null
 
const VALID_PROCESSING_ENDS_NOT_SUCCESSFUL_DAYS_2 = 2
 
const INVALID_PROCESSING_ENDS_NOT_SUCCESSFUL_DAYS = 0
 

Detailed Description

Definition at line 27 of file ilStudyProgrammeAutoMailSettingsTest.php.

Member Function Documentation

◆ testFailCreateWithInvalidProcessingEndsNotSuccessfulDays()

ilStudyProgrammeAutoMailSettingsTest::testFailCreateWithInvalidProcessingEndsNotSuccessfulDays ( )

Definition at line 76 of file ilStudyProgrammeAutoMailSettingsTest.php.

References Vendor\Package\$e.

76  : void
77  {
78  try {
80  self::VALID_SEND_REASSIGNED_MAIL_1,
81  self::VALID_REMINDER_NOT_RESTARTED_BY_USER_1,
82  self::INVALID_PROCESSING_ENDS_NOT_SUCCESSFUL_DAYS
83  );
84  $this->fail();
85  } catch (InvalidArgumentException $e) {
86  $this->assertTrue(true);
87  }
88  }

◆ testFailCreateWithInvalidReminderNotRestartedByUserDays()

ilStudyProgrammeAutoMailSettingsTest::testFailCreateWithInvalidReminderNotRestartedByUserDays ( )

Definition at line 62 of file ilStudyProgrammeAutoMailSettingsTest.php.

References Vendor\Package\$e.

62  : void
63  {
64  try {
66  self::VALID_SEND_REASSIGNED_MAIL_1,
67  self::INVALID_REMINDER_NOT_RESTARTED_BY_USER,
68  self::VALID_PROCESSING_ENDS_NOT_SUCCESSFUL_DAYS_1
69  );
70  $this->fail();
71  } catch (InvalidArgumentException $e) {
72  $this->assertTrue(true);
73  }
74  }

◆ testFailWithProcessingEndsNotSuccessfulDays()

ilStudyProgrammeAutoMailSettingsTest::testFailWithProcessingEndsNotSuccessfulDays ( )

Definition at line 174 of file ilStudyProgrammeAutoMailSettingsTest.php.

References Vendor\Package\$e, Vendor\Package\$f, ILIAS\UI\Implementation\Component\Input\$inputs, $lng, ILIAS\UI\examples\Layout\Page\Standard\$refinery, and $txt.

174  : void
175  {
177  self::VALID_SEND_REASSIGNED_MAIL_1,
178  self::VALID_REMINDER_NOT_RESTARTED_BY_USER_1,
179  self::VALID_PROCESSING_ENDS_NOT_SUCCESSFUL_DAYS_1
180  );
181  try {
182  $obj->withProcessingEndsNotSuccessfulDays(
183  self::INVALID_PROCESSING_ENDS_NOT_SUCCESSFUL_DAYS
184  );
185  $this->fail();
186  } catch (InvalidArgumentException $e) {
187  $this->assertTrue(true);
188  }
189  }

◆ testFailWithReminderNotRestartedByUserDays()

ilStudyProgrammeAutoMailSettingsTest::testFailWithReminderNotRestartedByUserDays ( )

Definition at line 136 of file ilStudyProgrammeAutoMailSettingsTest.php.

References Vendor\Package\$e.

136  : void
137  {
139  self::VALID_SEND_REASSIGNED_MAIL_1,
140  self::VALID_REMINDER_NOT_RESTARTED_BY_USER_1,
141  self::VALID_PROCESSING_ENDS_NOT_SUCCESSFUL_DAYS_1
142  );
143  try {
144  $obj->withReminderNotRestartedByUserDays(self::INVALID_REMINDER_NOT_RESTARTED_BY_USER);
145  $this->fail();
146  } catch (InvalidArgumentException $e) {
147  $this->assertTrue(true);
148  }
149  }

◆ testSuccessfulCreate()

ilStudyProgrammeAutoMailSettingsTest::testSuccessfulCreate ( )

Definition at line 38 of file ilStudyProgrammeAutoMailSettingsTest.php.

38  : void
39  {
41  self::VALID_SEND_REASSIGNED_MAIL_1,
42  self::VALID_REMINDER_NOT_RESTARTED_BY_USER_1,
43  self::VALID_PROCESSING_ENDS_NOT_SUCCESSFUL_DAYS_1
44  );
45 
46  $this->assertEquals(
47  self::VALID_SEND_REASSIGNED_MAIL_1,
48  $obj->getSendReAssignedMail()
49  );
50 
51  $this->assertEquals(
52  self::VALID_REMINDER_NOT_RESTARTED_BY_USER_1,
53  $obj->getReminderNotRestartedByUserDays()
54  );
55 
56  $this->assertEquals(
57  self::VALID_PROCESSING_ENDS_NOT_SUCCESSFUL_DAYS_1,
58  $obj->getProcessingEndsNotSuccessfulDays()
59  );
60  }

◆ testSuccessfulWithProcessingEndsNotSuccessfulDays()

ilStudyProgrammeAutoMailSettingsTest::testSuccessfulWithProcessingEndsNotSuccessfulDays ( )

Definition at line 151 of file ilStudyProgrammeAutoMailSettingsTest.php.

151  : void
152  {
154  self::VALID_SEND_REASSIGNED_MAIL_1,
155  self::VALID_REMINDER_NOT_RESTARTED_BY_USER_1,
156  self::VALID_PROCESSING_ENDS_NOT_SUCCESSFUL_DAYS_1
157  );
158 
159  $new = $obj->withProcessingEndsNotSuccessfulDays(
160  self::VALID_PROCESSING_ENDS_NOT_SUCCESSFUL_DAYS_2
161  );
162 
163  $this->assertEquals(
164  self::VALID_PROCESSING_ENDS_NOT_SUCCESSFUL_DAYS_1,
165  $obj->getProcessingEndsNotSuccessfulDays()
166  );
167 
168  $this->assertEquals(
169  self::VALID_PROCESSING_ENDS_NOT_SUCCESSFUL_DAYS_2,
170  $new->getProcessingEndsNotSuccessfulDays()
171  );
172  }

◆ testSuccessfulWithReminderNotRestartedByUserDays()

ilStudyProgrammeAutoMailSettingsTest::testSuccessfulWithReminderNotRestartedByUserDays ( )

Definition at line 113 of file ilStudyProgrammeAutoMailSettingsTest.php.

113  : void
114  {
116  self::VALID_SEND_REASSIGNED_MAIL_1,
117  self::VALID_REMINDER_NOT_RESTARTED_BY_USER_1,
118  self::VALID_PROCESSING_ENDS_NOT_SUCCESSFUL_DAYS_1
119  );
120 
121  $new = $obj->withReminderNotRestartedByUserDays(
122  self::VALID_REMINDER_NOT_RESTARTED_BY_USER_2
123  );
124 
125  $this->assertEquals(
126  self::VALID_REMINDER_NOT_RESTARTED_BY_USER_1,
127  $obj->getReminderNotRestartedByUserDays()
128  );
129 
130  $this->assertEquals(
131  self::VALID_REMINDER_NOT_RESTARTED_BY_USER_2,
132  $new->getReminderNotRestartedByUserDays()
133  );
134  }

◆ testSuccessfulWithSendReAssignedMail()

ilStudyProgrammeAutoMailSettingsTest::testSuccessfulWithSendReAssignedMail ( )

Definition at line 90 of file ilStudyProgrammeAutoMailSettingsTest.php.

90  : void
91  {
93  self::VALID_SEND_REASSIGNED_MAIL_1,
94  self::VALID_REMINDER_NOT_RESTARTED_BY_USER_1,
95  self::VALID_PROCESSING_ENDS_NOT_SUCCESSFUL_DAYS_1
96  );
97 
98  $new = $obj->withSendReAssignedMail(
99  self::VALID_SEND_REASSIGNED_MAIL_2
100  );
101 
102  $this->assertEquals(
103  self::VALID_SEND_REASSIGNED_MAIL_1,
104  $obj->getSendReAssignedMail()
105  );
106 
107  $this->assertEquals(
108  self::VALID_SEND_REASSIGNED_MAIL_2,
109  $new->getSendReAssignedMail()
110  );
111  }

Field Documentation

◆ INVALID_PROCESSING_ENDS_NOT_SUCCESSFUL_DAYS

const ilStudyProgrammeAutoMailSettingsTest::INVALID_PROCESSING_ENDS_NOT_SUCCESSFUL_DAYS = 0
private

Definition at line 36 of file ilStudyProgrammeAutoMailSettingsTest.php.

◆ INVALID_REMINDER_NOT_RESTARTED_BY_USER

const ilStudyProgrammeAutoMailSettingsTest::INVALID_REMINDER_NOT_RESTARTED_BY_USER = 0
private

Definition at line 33 of file ilStudyProgrammeAutoMailSettingsTest.php.

◆ VALID_PROCESSING_ENDS_NOT_SUCCESSFUL_DAYS_1

const ilStudyProgrammeAutoMailSettingsTest::VALID_PROCESSING_ENDS_NOT_SUCCESSFUL_DAYS_1 = null
private

Definition at line 34 of file ilStudyProgrammeAutoMailSettingsTest.php.

◆ VALID_PROCESSING_ENDS_NOT_SUCCESSFUL_DAYS_2

const ilStudyProgrammeAutoMailSettingsTest::VALID_PROCESSING_ENDS_NOT_SUCCESSFUL_DAYS_2 = 2
private

Definition at line 35 of file ilStudyProgrammeAutoMailSettingsTest.php.

◆ VALID_REMINDER_NOT_RESTARTED_BY_USER_1

const ilStudyProgrammeAutoMailSettingsTest::VALID_REMINDER_NOT_RESTARTED_BY_USER_1 = null
private

Definition at line 31 of file ilStudyProgrammeAutoMailSettingsTest.php.

◆ VALID_REMINDER_NOT_RESTARTED_BY_USER_2

const ilStudyProgrammeAutoMailSettingsTest::VALID_REMINDER_NOT_RESTARTED_BY_USER_2 = 2
private

Definition at line 32 of file ilStudyProgrammeAutoMailSettingsTest.php.

◆ VALID_SEND_REASSIGNED_MAIL_1

const ilStudyProgrammeAutoMailSettingsTest::VALID_SEND_REASSIGNED_MAIL_1 = true
private

Definition at line 29 of file ilStudyProgrammeAutoMailSettingsTest.php.

◆ VALID_SEND_REASSIGNED_MAIL_2

const ilStudyProgrammeAutoMailSettingsTest::VALID_SEND_REASSIGNED_MAIL_2 = false
private

Definition at line 30 of file ilStudyProgrammeAutoMailSettingsTest.php.


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