lsuonline / lsuce-block_quickmail

6 stars 37 forks source link

Fixed issue #71 #80

Open opitz opened 1 year ago

opitz commented 1 year ago

setting userteacher as user in tests before messenger::compose or messenger::save_compose_draft, restoring doubledollar in line 89 of submits_compose_message_form.php. This will fix issue #71.

aydevworks commented 1 year ago

I think it would be better to setup the $course, $userteacher, $userstudents and the global $USER variable in the setUp() function rather to have them setup in each test.

aydevworks commented 1 year ago

I think it would be better to setup the $course, $userteacher, $userstudents and the global $USER variable in the setUp() function rather to have them setup in each test.

But it would limit the flexibility of adding new tests which do not require the same setup, so I am fine with the fix. 😄