mirror of
https://github.com/moodle/moodle.git
synced 2025-08-11 20:06:46 +02:00
Merge branch 'MDL-80266-main' of https://github.com/andrewnicols/moodle
This commit is contained in:
commit
583cd6377e
1 changed files with 11 additions and 1 deletions
|
@ -27,7 +27,8 @@
|
||||||
|
|
||||||
require_once(__DIR__ . '/../../../../lib/behat/behat_base.php');
|
require_once(__DIR__ . '/../../../../lib/behat/behat_base.php');
|
||||||
|
|
||||||
use Behat\Gherkin\Node\TableNode as TableNode;
|
use Behat\Gherkin\Node\TableNode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Forum-related steps definitions.
|
* Forum-related steps definitions.
|
||||||
*
|
*
|
||||||
|
@ -37,6 +38,15 @@ use Behat\Gherkin\Node\TableNode as TableNode;
|
||||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
*/
|
*/
|
||||||
class behat_mod_forum extends behat_base {
|
class behat_mod_forum extends behat_base {
|
||||||
|
/**
|
||||||
|
* Reset forum caches between tests.
|
||||||
|
*
|
||||||
|
* @BeforeScenario @mod_forum
|
||||||
|
*/
|
||||||
|
public function reset_forum_caches(): void {
|
||||||
|
\mod_forum\subscriptions::reset_discussion_cache();
|
||||||
|
\mod_forum\subscriptions::reset_forum_cache();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds a topic to the forum specified by it's name. Useful for the Announcements and blog-style forums.
|
* Adds a topic to the forum specified by it's name. Useful for the Announcements and blog-style forums.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue