ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilSystemStyleMessageTest Class Reference
+ Inheritance diagram for ilSystemStyleMessageTest:
+ Collaboration diagram for ilSystemStyleMessageTest:

Public Member Functions

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

Protected Attributes

 $ilSystemStyleMessage
 
 $messageString = "This is a message"
 

Detailed Description

Member Function Documentation

◆ testConstructor()

ilSystemStyleMessageTest::testConstructor ( )

Definition at line 24 of file ilSystemStyleMessageTest.php.

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

25  {
27  $this->assertTrue($this->ilSystemStyleMessage->getTypeId() === ilSystemStyleMessage::TYPE_INFO);
28  $this->assertTrue($this->ilSystemStyleMessage->getMessage() === $this->messageString);
29 
30  $this->ilSystemStyleMessage = new ilSystemStyleMessage($this->messageString, ilSystemStyleMessage::TYPE_SUCCESS);
31  $this->assertTrue($this->ilSystemStyleMessage->getTypeId() === ilSystemStyleMessage::TYPE_SUCCESS);
32  $this->assertTrue($this->ilSystemStyleMessage->getMessage() === $this->messageString);
33 
34  $this->ilSystemStyleMessage = new ilSystemStyleMessage($this->messageString, ilSystemStyleMessage::TYPE_ERROR);
35  $this->assertTrue($this->ilSystemStyleMessage->getTypeId() === ilSystemStyleMessage::TYPE_ERROR);
36  $this->assertTrue($this->ilSystemStyleMessage->getMessage() === $this->messageString);
37  }
+ Here is the call graph for this function:

◆ testGetAndSetMessage()

ilSystemStyleMessageTest::testGetAndSetMessage ( )

Definition at line 39 of file ilSystemStyleMessageTest.php.

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

40  {
42  $this->ilSystemStyleMessage->setMessage("This is an altered message");
43  $this->assertTrue($this->ilSystemStyleMessage->getMessage() === "This is an altered message");
44  }
+ Here is the call graph for this function:

◆ testGetAndSetTypeID()

ilSystemStyleMessageTest::testGetAndSetTypeID ( )

Definition at line 46 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 59 of file ilSystemStyleMessageTest.php.

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

60  {
62  $this->assertTrue($this->ilSystemStyleMessage->getMessageOutput() === "This is a message</br>");
63  }
+ Here is the call graph for this function:

Field Documentation

◆ $ilSystemStyleMessage

ilSystemStyleMessageTest::$ilSystemStyleMessage
protected

Definition at line 17 of file ilSystemStyleMessageTest.php.

◆ $messageString

ilSystemStyleMessageTest::$messageString = "This is a message"
protected

Definition at line 22 of file ilSystemStyleMessageTest.php.

Referenced by testConstructor().


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