403Webshell
Server IP : 172.67.187.206  /  Your IP : 172.71.28.156
Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30
System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586
User : SYSTEM ( 0)
PHP Version : 5.6.30
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Inetpub/www/myschool/triamudom/tuprblearn/enrol/lti/tests/behat/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Inetpub/www/myschool/triamudom/tuprblearn/enrol/lti/tests/behat/basic_settings.feature
@enrol @enrol_lti
Feature: Check that settings are adhered to when creating an enrolment plugin
  In order to create an LTI enrolment instance
  As an admin
  I need to ensure the site-wide settings are used

  Background:
    Given the following "users" exist:
      | username | firstname | lastname | email |
      | teacher1 | Teacher | 1 | [email protected] |
      | student1 | Student | 1 | [email protected] |
    And the following "courses" exist:
      | fullname | shortname | format |
      | Course 1 | C1 | topics |
    And the following "course enrolments" exist:
      | user | course | role |
      | teacher1 | C1 | editingteacher |
    And I log in as "admin"
    And I navigate to "Plugins > Enrolments > Manage enrol plugins" in site administration
    And I click on "Enable" "link" in the "Publish as LTI tool" "table_row"
    And I navigate to "Plugins > Enrolments > Publish as LTI tool" in site administration
    And I set the following fields to these values:
      | Email display       | Allow everyone to see my email address |
      | City/town           | Perth                                  |
      | Select a country    | Australia                              |
      | Timezone            | Australia/Perth                        |
      | Institution         | Moodle Pty Ltd                         |
    And I press "Save changes"
    And I log out

  Scenario: As an admin set site-wide settings for the enrolment plugin and ensure they are used
    Given I log in as "teacher1"
    And I am on "Course 1" course homepage
    And I navigate to "Users > Enrolment methods" in current page administration
    And I select "Publish as LTI tool" from the "Add method" singleselect
    When I expand all fieldsets
    Then the field "Email display" matches value "Allow everyone to see my email address"
    And the field "City/town" matches value "Perth"
    And the field "Select a country" matches value "Australia"
    And the field "Timezone" matches value "Australia/Perth"
    And the field "Institution" matches value "Moodle Pty Ltd"
    And I set the following fields to these values:
      | Email display       | Hide my email address from non-privileged users |
      | City/town           | Whistler                                        |
      | Select a country    | Canada                                          |
      | Timezone            | America/Vancouver                               |
      | Institution         | Moodle Pty Ltd - remote                         |
    And I press "Add method"
    And I click on "Edit" "link" in the "Publish as LTI tool" "table_row"
    And the field "Email display" matches value "Hide my email address from non-privileged users"
    And the field "City/town" matches value "Whistler"
    And the field "Select a country" matches value "Canada"
    And the field "Timezone" matches value "America/Vancouver"
    And the field "Institution" matches value "Moodle Pty Ltd - remote"

Youez - 2016 - github.com/yon3zu
LinuXploit