Proyectos de Subversion Moodle

Rev

Rev 11 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 11 Rev 1441
Línea 33... Línea 33...
33
 * @package    mod_forum
33
 * @package    mod_forum
34
 * @category   test
34
 * @category   test
35
 * @copyright  2016 Andrew Nicols <andrew@nicols.co.uk>
35
 * @copyright  2016 Andrew Nicols <andrew@nicols.co.uk>
36
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
36
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
37
 */
37
 */
38
class backup_forum_activity_task_test extends \advanced_testcase {
38
final class backup_forum_activity_task_test extends \advanced_testcase {
Línea 39... Línea 39...
39
 
39
 
40
    /**
40
    /**
41
     * Test the encoding of forum content links.
41
     * Test the encoding of forum content links.
42
     *
42
     *
Línea 47... Línea 47...
47
     */
47
     */
48
    public function test_encode_content_links($content, $expectation): void {
48
    public function test_encode_content_links($content, $expectation): void {
49
        $this->assertEquals($expectation, backup_forum_activity_task::encode_content_links($content));
49
        $this->assertEquals($expectation, backup_forum_activity_task::encode_content_links($content));
50
    }
50
    }
Línea 51... Línea 51...
51
 
51
 
52
    public function encode_content_links_provider() {
52
    public static function encode_content_links_provider(): array {
53
        global $CFG;
53
        global $CFG;
54
        $altwwwroot = 'http://invalid.example.com/';
54
        $altwwwroot = 'http://invalid.example.com/';
55
        return [
55
        return [
56
            'Link to the list of forums for current wwwroot' => [
56
            'Link to the list of forums for current wwwroot' => [