mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 20:42:22 +02:00
MDL-4188 mod_bigbluebuttonbn: Modify PHPUnit to use the new sink method
This commit is contained in:
parent
b68a89a4da
commit
70f85b92e3
@ -157,8 +157,12 @@ class mod_helper_trait_test extends \advanced_testcase {
|
||||
ob_start();
|
||||
$this->runAdhocTasks();
|
||||
ob_get_clean(); // Suppress output as it can fail the test.
|
||||
$this->assertEquals(1, $messagesink->count());
|
||||
$firstmessage = $messagesink->get_messages()[0];
|
||||
$messages = $messagesink->get_messages_by_component_and_type(
|
||||
component: 'core',
|
||||
type: 'coursecontentupdated',
|
||||
);
|
||||
$this->assertEquals(1, count($messages));
|
||||
$firstmessage = reset($messages);
|
||||
$this->assertStringContainsString('is new in', $firstmessage->smallmessage);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user