Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 39 and 310] [Versions 39 and 402] [Versions 39 and 403]

Atto custom steps definitions.

Copyright: 2014 Damyon Wiese
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 108 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 2 files
 lib/behat/behat_base.php
 lib/behat/classes/settable_editor.php

Defines 1 class

behat_editor_atto:: (3 methods):
  set_editor_value()
  select_the_text_in_the_atto_editor()
  set_default_editor_flag()


Class: behat_editor_atto  - X-Ref

Steps definitions to deal with the atto text editor

set_editor_value(string $editorid, string $value)   X-Ref
Set the value for the editor.

param: string $editorid
param: string $value

select_the_text_in_the_atto_editor($fieldlocator)   X-Ref
Select the text in an Atto field.

param: string $field
return: void

set_default_editor_flag(BeforeScenarioScope $scope)   X-Ref
Ensure that the Atto editor is used for all tests using the editor_atto, or atto_* tags.

This ensures, whatever the default editor, that the Atto editor is used for these tests.

param: BeforeScenarioScope $scope The Behat Scope