Skip to content

Commit

Permalink
MDL-22077 forum: Deprecate unused helper trait
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols authored and Peter committed Apr 4, 2019
1 parent 6243019 commit 12a1f9c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 173 deletions.
166 changes: 0 additions & 166 deletions mod/forum/tests/helper.php

This file was deleted.

4 changes: 2 additions & 2 deletions mod/forum/tests/privacy_provider_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

global $CFG;

require_once(__DIR__ . '/helper.php');
require_once(__DIR__ . '/generator_trait.php');
require_once($CFG->dirroot . '/rating/lib.php');

use \mod_forum\privacy\provider;
Expand All @@ -45,7 +45,7 @@ class mod_forum_privacy_provider_testcase extends \core_privacy\tests\provider_t

// Include the mod_forum test helpers.
// This includes functions to create forums, users, discussions, and posts.
use helper;
use mod_forum_tests_generator_trait;

// Include the privacy helper trait for the ratings API.
use \core_rating\phpunit\privacy_helper;
Expand Down
4 changes: 2 additions & 2 deletions mod/forum/tests/rsslib_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
defined('MOODLE_INTERNAL') || die();

global $CFG;
require_once(__DIR__ . '/helper.php');
require_once(__DIR__ . '/generator_trait.php');
require_once("{$CFG->dirroot}/mod/forum/rsslib.php");

/**
Expand All @@ -37,7 +37,7 @@
class mod_forum_rsslib_testcase extends advanced_testcase {
// Include the mod_forum test helpers.
// This includes functions to create forums, users, discussions, and posts.
use helper;
use mod_forum_tests_generator_trait;

/**
* Ensure that deleted posts are not included.
Expand Down
6 changes: 3 additions & 3 deletions mod/forum/tests/subscriptions_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@
defined('MOODLE_INTERNAL') || die();

global $CFG;
require_once($CFG->dirroot . '/mod/forum/lib.php');
require_once(__DIR__ . '/helper.php');
require_once(__DIR__ . '/generator_trait.php');
require_once("{$CFG->dirroot}/mod/forum/lib.php");

class mod_forum_subscriptions_testcase extends advanced_testcase {
// Include the mod_forum test helpers.
// This includes functions to create forums, users, discussions, and posts.
use helper;
use mod_forum_tests_generator_trait;

/**
* Test setUp.
Expand Down

0 comments on commit 12a1f9c

Please sign in to comment.