File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
@mod @mod_moodleoverflow @mod_moodleoverflow_search
2
- Feature : Add moodleoverflow activities and discussions
2
+ Feature : Search moodle for moodleoverflow discussions
3
3
In order to find discussions
4
4
I need to be able to search them
5
5
@@ -59,4 +59,4 @@ Feature: Add moodleoverflow activities and discussions
59
59
And I fill in "id_q" with "Forum post 1"
60
60
And I press "id_submitbutton"
61
61
Then I should not see "Forum post 1"
62
- And I should not see "This is the body"
62
+ And I should not see "This is the body"
Original file line number Diff line number Diff line change @@ -133,14 +133,15 @@ public function test_deleted_post() {
133
133
public function test_forbidden_discussion () {
134
134
global $ CFG ;
135
135
$ this ->resetAfterTest ();
136
+
136
137
$ CFG ->enableglobalsearch = 1 ;
137
138
138
139
$ course = $ this ->getDataGenerator ()->create_course ();
139
- $ moodleoverflow = $ this ->getDataGenerator ()->create_module ("moodleoverflow " , array ("course " => $ course ));
140
140
$ moodleoverflowgen = $ this ->getDataGenerator ()->get_plugin_generator ('mod_moodleoverflow ' );
141
+ $ moodleoverflow = $ this ->getDataGenerator ()->create_module ("moodleoverflow " , array ("course " => $ course ));
141
142
$ user = $ this ->getDataGenerator ()->create_user ();
142
- $ user2 = $ this ->getDataGenerator ()->create_user ();
143
143
$ this ->getDataGenerator ()->enrol_user ($ user ->id , $ course ->id );
144
+ $ user2 = $ this ->getDataGenerator ()->create_user ();
144
145
$ this ->setUser ($ user2 );
145
146
146
147
[$ discussion , $ post ] = $ moodleoverflowgen ->post_to_forum ($ moodleoverflow , $ user );
You can’t perform that action at this time.
0 commit comments