Details
-
Type:
Functional Test
-
Status: Passed
-
Priority:
Critical
-
Affects Version/s: Moodle 2.6
-
Fix Version/s: Moodle 2.6
-
Component/s: Database activity module, Filepicker, Student, Teacher
-
Labels:None
Description
Test Pre-requisites:
- A Database activity with a file field and a picture field.
Test Steps:
- Login as a teacher, navigate to the Database activity, Click the Fields tab and update the picture field.
- Set the maximum size to "Course upload limit".
- Login as a Student and navigate to the Database activity. Select the Add an entry tab.
- Click 'Choose a file' on the Picture field and verify that File picker is displayed.
- Select 'Upload a file', choose a file to upload and upload it.
- Click 'Save and view' and verify that the files have been uploaded.
- Download the picture to verify that the file link has been created properly.
- Login as a Teacher and download the picture, then verify that the file is correct.
- Navigate to the Database activity.
- Click the fields tab and follow steps 2 and 3, but set the Maximum size to something lower than the course upload limit.
- Follow steps 3 onwards with the new setting.