░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
pplmvsvm
LOCATION:
/var/www/moodle/public/course/format/tests/output/local/overview
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: overviewdialog_test.php
<?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 core_courseformat\output\local\overview; /** * Tests for overviewdialog. * * @package core_courseformat * @category test * @copyright 2025 Ferran Recio <ferran@moodle.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ #[\PHPUnit\Framework\Attributes\CoversClass(overviewdialog::class)] final class overviewdialog_test extends \advanced_testcase { /** * Test the exportable interface implementation. */ public function test_get_exporter(): void { $source = new overviewdialog('button content', 'dialog title', 'dialog description'); $source->add_item('Item 1', 'Value 1'); $source->add_item('Item 2', 'Value 2'); $expectedclass = \core_courseformat\external\overviewdialog_exporter::class; $exporter = $source->get_exporter(); $this->assertInstanceOf($expectedclass, $exporter); $structure = overviewdialog::get_read_structure(); $this->assertInstanceOf(\core_external\external_single_structure::class, $structure); $this->assertEquals( $expectedclass::get_read_structure(), $structure, ); $structure = overviewdialog::read_properties_definition(); $this->assertEquals( $expectedclass::read_properties_definition(), $structure, ); } }
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 activityname_test.php
PHP
3.4 KB
2026-02-11 01:44
EDIT
📄 missingoverviewnotice_test.php
PHP
4.4 KB
2026-02-11 01:44
EDIT
📄 overviewdialog_test.php
PHP
2 KB
2026-02-11 01:44
EDIT
📄 overviewtable_test.php
PHP
3.4 KB
2026-02-11 01:44
EDIT