Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 24... Línea 24...
24
 *
24
 *
25
 * @package    mod_forum
25
 * @package    mod_forum
26
 * @copyright  2019 Ryan Wyllie <ryan@moodle.com>
26
 * @copyright  2019 Ryan Wyllie <ryan@moodle.com>
27
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
27
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
28
 */
28
 */
29
class entities_discussion_test extends \advanced_testcase {
29
final class entities_discussion_test extends \advanced_testcase {
30
    /**
30
    /**
31
     * Test the entity returns expected values.
31
     * Test the entity returns expected values.
32
     */
32
     */
33
    public function test_entity(): void {
33
    public function test_entity(): void {
34
        $this->resetAfterTest();
34
        $this->resetAfterTest();
Línea 157... Línea 157...
157
    /**
157
    /**
158
     * Data provider for test_display_period_settings().
158
     * Data provider for test_display_period_settings().
159
     *
159
     *
160
     * @return array start/end time offsets and the expected results.
160
     * @return array start/end time offsets and the expected results.
161
     */
161
     */
162
    public function diplay_period_options_provider() {
162
    public static function diplay_period_options_provider(): array {
163
        return array(
163
        return array(
164
            ["No dates set", 0, 0, true, false, true],
164
            ["No dates set", 0, 0, true, false, true],
165
            ["Only started date in the future", 100, 0, false, false, false],
165
            ["Only started date in the future", 100, 0, false, false, false],
166
            ["Only started date in the past", -100, 0, true, false, true],
166
            ["Only started date in the past", -100, 0, true, false, true],
167
            ["Only end date in the future", 0, 100, true, false, true],
167
            ["Only end date in the future", 0, 100, true, false, true],