The helper class providing util methods for testing.
More...
The helper class providing util methods for testing.
- Copyright
- 2018 Jake Dallimore markn.nosp@m.@moo.nosp@m.dle.c.nosp@m.om
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ send_fake_message_to_conversation()
static core_message\tests\helper::send_fake_message_to_conversation |
( |
\stdClass |
$userfrom, |
|
|
int |
$convid, |
|
|
string |
$message = 'Hello world!' , |
|
|
int |
$time = null |
|
) |
| |
|
static |
Sends a message to a conversation.
- Parameters
-
stdClass | $userfrom | user object of the one sending the message. |
int | $convid | id of the conversation in which we'll send the message. |
string | $message | message to send. |
int | $time | the time the message was sent. |
- Return values
-
int | the id of the message which was sent. |
- Exceptions
-
The documentation for this class was generated from the following file: