From 5526926c724fb7ae56b3d4ff56db5be4bb47da25 Mon Sep 17 00:00:00 2001 From: Alan Thompson Date: Thu, 20 Aug 2015 14:49:45 +0100 Subject: [PATCH] Behat fixes: OU blog, OU wiki, user options #93855 --- mod_form.php | 2 +- tests/behat/basic.feature | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mod_form.php b/mod_form.php index 0d440c1..5bc4c51 100644 --- a/mod_form.php +++ b/mod_form.php @@ -35,7 +35,7 @@ public function definition() { $mform->setType('name', PARAM_TEXT); $mform->addRule('name', get_string('required'), 'required', null, 'client'); - $this->add_intro_editor(false, get_string('wikiintro', 'wiki')); + $this->standard_intro_elements(get_string('wikiintro', 'wiki')); $mform->addElement('header', 'wikifieldset', get_string('wikisettings', 'wiki')); diff --git a/tests/behat/basic.feature b/tests/behat/basic.feature index 2aa86cc..914d9c4 100644 --- a/tests/behat/basic.feature +++ b/tests/behat/basic.feature @@ -323,7 +323,7 @@ Feature: Test Post and Comment on OUwiki entry Scenario: Wiki history No groups - Given I log in as "teacher1" - And I am on homepage + And I am on site homepage And I follow "Course 1" And I turn editing mode on When I add a "OU wiki" to section "1" and I fill the form with: @@ -546,7 +546,7 @@ Feature: Test Post and Comment on OUwiki entry | Content | PORNOGRAPHY | And I log out Given I log in as "admin" - And I am on homepage + And I am on site homepage And I follow "Course 1" And I follow "W.WX" When I click on "Frogs" "link"