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

Public Member Functions

 testConstructor ()
 
 testGetAndSetMessage ()
 
 testGetAndSetTypeID ()
 
 testGetMessageOutput ()
 

Protected Attributes

ilSystemStyleMessage $ilSystemStyleMessage
 
string $messageString = 'This is a message'
 

Detailed Description

Definition at line 25 of file ilSystemStyleMessageTest.php.

Member Function Documentation

◆ testConstructor()

ilSystemStyleMessageTest::testConstructor ( )

Definition at line 30 of file ilSystemStyleMessageTest.php.

References $messageString, ilSystemStyleMessage\getMessage(), ilSystemStyleMessage\getTypeId(), ilSystemStyleMessage\TYPE_ERROR, ilSystemStyleMessage\TYPE_INFO, and ilSystemStyleMessage\TYPE_SUCCESS.

30  : void
31  {
33  $this->assertTrue($this->ilSystemStyleMessage->getTypeId() === ilSystemStyleMessage::TYPE_INFO);
34  $this->assertTrue($this->ilSystemStyleMessage->getMessage() === $this->messageString);
35 
36  $this->ilSystemStyleMessage = new ilSystemStyleMessage($this->messageString, ilSystemStyleMessage::TYPE_SUCCESS);
37  $this->assertTrue($this->ilSystemStyleMessage->getTypeId() === ilSystemStyleMessage::TYPE_SUCCESS);
38  $this->assertTrue($this->ilSystemStyleMessage->getMessage() === $this->messageString);
39 
40  $this->ilSystemStyleMessage = new ilSystemStyleMessage($this->messageString, ilSystemStyleMessage::TYPE_ERROR);
41  $this->assertTrue($this->ilSystemStyleMessage->getTypeId() === ilSystemStyleMessage::TYPE_ERROR);
42  $this->assertTrue($this->ilSystemStyleMessage->getMessage() === $this->messageString);
43  }
+ Here is the call graph for this function:

◆ testGetAndSetMessage()

ilSystemStyleMessageTest::testGetAndSetMessage ( )

Definition at line 45 of file ilSystemStyleMessageTest.php.

References ilSystemStyleMessage\getMessage(), ilSystemStyleMessage\setMessage(), and ilSystemStyleMessage\TYPE_INFO.

45  : void
46  {
48  $this->ilSystemStyleMessage->setMessage('This is an altered message');
49  $this->assertTrue($this->ilSystemStyleMessage->getMessage() === 'This is an altered message');
50  }
+ Here is the call graph for this function:

◆ testGetAndSetTypeID()

ilSystemStyleMessageTest::testGetAndSetTypeID ( )

Definition at line 52 of file ilSystemStyleMessageTest.php.

References ilSystemStyleMessage\getTypeId(), ilSystemStyleMessage\setTypeId(), ilSystemStyleMessage\TYPE_ERROR, ilSystemStyleMessage\TYPE_INFO, and ilSystemStyleMessage\TYPE_SUCCESS.

+ Here is the call graph for this function:

◆ testGetMessageOutput()

ilSystemStyleMessageTest::testGetMessageOutput ( )

Definition at line 65 of file ilSystemStyleMessageTest.php.

References ilSystemStyleMessage\getMessageOutput(), and ilSystemStyleMessage\TYPE_INFO.

65  : void
66  {
68  $this->assertTrue($this->ilSystemStyleMessage->getMessageOutput() === 'This is a message</br>');
69  }
+ Here is the call graph for this function:

Field Documentation

◆ $ilSystemStyleMessage

ilSystemStyleMessage ilSystemStyleMessageTest::$ilSystemStyleMessage
protected

Definition at line 27 of file ilSystemStyleMessageTest.php.

◆ $messageString

string ilSystemStyleMessageTest::$messageString = 'This is a message'
protected

Definition at line 28 of file ilSystemStyleMessageTest.php.

Referenced by testConstructor().


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