__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
namespace mod_bigbluebuttonbn;
use advanced_testcase;
use moodle_exception;
/**
* Tests for the Big Blue Button Plugin class.
*
* @package mod_bigbluebuttonbn
* @copyright 2021 Andrew Lyons <andrew@nicols.co.uk>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @coversDefaultClass \mod_bigbluebuttonbn\plugin
*/
final class plugin_test extends advanced_testcase {
/**
* Test html2text
*
* @covers ::html2text
*/
public function test_html2text(): void {
$this->assertEquals('My text is in HTML', plugin::html2text('<p>My text is in HTML</p>', 100));
$this->assertEquals('My...', plugin::html2text('<p>My text is in HTML</p>', 2));
}
/**
* Test random_password
*
* @covers ::random_password
*/
public function test_random_password(): void {
$password = plugin::random_password(10);
$this->assertEquals(10, strlen($password));
$this->assertMatchesRegularExpression(
'/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]+/', $password);
}
/**
* Test generate_guest_meeting_credentials
*
* @covers ::generate_guest_meeting_credentials
*/
public function test_generate_guest_meeting_credentials(): void {
[$guestlinkuid, $password] = plugin::generate_guest_meeting_credentials();
$this->assertEquals(40, strlen($guestlinkuid));
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| behat | Folder | 0777 |
|
|
| completion | Folder | 0777 |
|
|
| external | Folder | 0777 |
|
|
| fixtures | Folder | 0777 |
|
|
| generator | Folder | 0777 |
|
|
| local | Folder | 0777 |
|
|
| output | Folder | 0777 |
|
|
| privacy | Folder | 0777 |
|
|
| task | Folder | 0777 |
|
|
| backup_restore_test.php | File | 10.09 KB | 0777 |
|
| coverage.php | File | 2.14 KB | 0777 |
|
| instance_test.php | File | 21.77 KB | 0777 |
|
| lib_test.php | File | 28.01 KB | 0777 |
|
| logger_test.php | File | 2.46 KB | 0777 |
|
| meeting_test.php | File | 19.51 KB | 0777 |
|
| plugin_test.php | File | 2.09 KB | 0777 |
|
| recording_test.php | File | 11.52 KB | 0777 |
|
| search_test.php | File | 2.93 KB | 0777 |
|