Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 310 and 311] [Versions 311 and 402] [Versions 311 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/classes/settable_editor.php
 lib/behat/behat_base.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