Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 310 and 401] [Versions 401 and 402] [Versions 401 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