◆ setUp()
ilStudyProgrammeGUIMessagesTest::setUp |
( |
| ) |
|
Definition at line 28 of file ilStudyProgrammeGUIMessagesTest.php.
References $lng, and $tpl.
31 $lng = $this->createMock(ilLanguage::class);
32 $tpl = $this->createMock(ilGlobalTemplateInterface::class);
34 $this->topic =
'a test topic';
36 $this->collection = $this->messages->getMessageCollection($this->topic);
37 $this->collection2 = $this->messages->getMessageCollection($this->topic);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ testAddErrorMessages()
ilStudyProgrammeGUIMessagesTest::testAddErrorMessages |
( |
| ) |
|
Definition at line 78 of file ilStudyProgrammeGUIMessagesTest.php.
References $id, and $message.
83 $this->assertFalse($this->collection->hasAnyMessages());
84 $collection = $this->collection->withNewTopic($this->topic);
85 $this->assertFalse($collection->hasAnyMessages());
90 $this->assertTrue($collection->hasAnyMessages());
92 $this->assertTrue($collection->hasErrors());
95 $collection->getErrors()
98 $this->assertEquals([], $collection->getSuccess());
99 $this->assertFalse($collection->hasSuccess());
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
◆ testAddMessages()
ilStudyProgrammeGUIMessagesTest::testAddMessages |
( |
| ) |
|
Definition at line 60 of file ilStudyProgrammeGUIMessagesTest.php.
62 $ok_message =
'looks good';
63 $ok_id =
'some good record';
64 $this->collection->add(
true, $ok_message, $ok_id);
66 $this->assertTrue($this->collection->hasAnyMessages());
68 $this->assertFalse($this->collection->hasErrors());
69 $this->assertEquals([], $this->collection->getErrors());
71 $this->assertTrue($this->collection->hasSuccess());
73 [[$ok_message, $ok_id]],
74 $this->collection->getSuccess()
◆ testCollectionDefaults()
ilStudyProgrammeGUIMessagesTest::testCollectionDefaults |
( |
| ) |
|
Definition at line 47 of file ilStudyProgrammeGUIMessagesTest.php.
49 $this->assertEquals($this->topic, $this->collection->getDescription());
51 $this->assertFalse($this->collection->hasErrors());
52 $this->assertEquals([], $this->collection->getErrors());
54 $this->assertFalse($this->collection->hasSuccess());
55 $this->assertEquals([], $this->collection->getSuccess());
57 $this->assertFalse($this->collection->hasAnyMessages());
◆ testMessageFactory()
ilStudyProgrammeGUIMessagesTest::testMessageFactory |
( |
| ) |
|
Definition at line 40 of file ilStudyProgrammeGUIMessagesTest.php.
42 $this->assertInstanceOf(ilPRGMessageCollection::class, $this->collection);
43 $this->assertEquals($this->collection, $this->collection2);
44 $this->assertNotSame($this->collection, $this->collection2);
◆ $messages
◆ $topic
string ilStudyProgrammeGUIMessagesTest::$topic |
|
protected |
The documentation for this class was generated from the following file: