- 22 Jul, 2021 1 commit
-
-
cescobedo authored
Final deprecation of: - can_post_message - get_individual_conversations_between_users
-
- 20 Apr, 2021 1 commit
-
-
Co-authored-by:
Ruslan Kabalin <ruslan.kabalin@gmail.com>
-
- 12 Mar, 2021 1 commit
-
-
Eloy Lafuente authored
The methods assertContains() and assertNotContains() now perform strict (type and value) comparison, pretty much like assertSame() does. A couple of new assertContainsEquals() and assertNotContainsEquals() methods have been created to provide old (non-strict) behavior, pretty much like assertEquals() do. Apart from replacing the calls needing a relaxed comparison to those new methods, there are also a couple of alternative, about how to fix this, depending of every case: - If the test is making any array_values() conversion, then it's better to remove that conversion and use assertArrayHasKey(), that is not strict. - Sometimes if may be also possible to, simply, cast the expectation to the exact type coming in the array. I've not applied this technique to any of the cases in core. Link: https://github.com/sebastianbergmann/phpunit/issues/3426
-
- 24 Nov, 2020 1 commit
-
-
David Matamoros authored
Passing a timefrom higher than last message timecreated needs to return a formatted response so it does not break ws.
-
- 21 Oct, 2020 2 commits
-
-
Eloy Lafuente authored
Both assertContains() and assertNotContains() are deprecated in PHPUnit 8 for operations on strings. Also the optional case parameter is. All uses must be changed to one of: - assertStringContainsString() - assertStringContainsStringIgnoringCase() - assertStringNotContainsString() - assertStringNotContainsStringIgnoringCase() More info: https://github.com/sebastianbergmann/phpunit/issues/3422 Regexp to find all uses: ag 'assert(Not)?Contains\('
-
Eloy Lafuente authored
With PHPUnit 8 a good number of assertions, all them related with operations on non-public attributes have been deprecated. And will be removed with PHPUnit 9. The main point is that unit tests shouldn't be testing non-public APIs (good practice) and those assertions were an error originally. See https://github.com/sebastianbergmann/phpunit/issues/3338 for the complete list and other details. When possible (the attributes being checked are public), the change is simple, just switching to normal assertions. When the attributes are not public we need to find a workaround to be able to test the same using public APIs, or use Reflection, or remove the tests. For the records, this is the regexp used to find all the cases: ag '>(assertAttribute|attribute\(|readAttributte|getStaticAttribute| \ getObjectAttribute)' -G "test.php"
-
- 07 Sep, 2020 1 commit
-
-
Mathew May authored
-
- 20 Dec, 2019 1 commit
-
-
Amaia authored
-
- 28 Aug, 2019 1 commit
-
-
Juan Leyva authored
Android 9 notifications now displays two image icons in conversations. The group and the sender.
-
- 30 Jul, 2019 1 commit
-
-
Eloy Lafuente authored
With the deprecation of can_post_message() in favor of can_send_message() all the new test_can_send_message_xxx() were created from the original test_can_post_message_xxx() ones. So, really we don't need all the old ones. Just ensure that debugging is being called and done. New tests are already covering the new method. Note this is not strictly needed but in practice is allowing MySQL + PHP 7.3 to stop segfaulting (because of some sort of limit / overflow happening somewhere else). So this is just a practical fix to avoid that while all the messaging tests are reorganizaed @ MDL-63670. There are some good things to fix there.
-
- 29 Jul, 2019 2 commits
-
-
Mark Nelson authored
If blocking will have no effect (ie. you are attempting to block the admin) the 'Block' button will not be shown and instead a message will be shown explaining why you can not block the user.
-
Mark Nelson authored
-
- 15 May, 2019 2 commits
-
-
Jake Dallimore authored
-
Jake Dallimore authored
Individual and self conversations may exist once only, so we need to enforce this in the creation method.
-
- 07 May, 2019 1 commit
-
-
- 06 May, 2019 3 commits
-
-
cescobedo authored
-
Jake Dallimore authored
When deleting a conversation for all users (e.g. when deleting a group which has a conversation), we need to remove any favourites.
-
Amaia authored
-
- 30 Apr, 2019 2 commits
-
-
Jake Dallimore authored
Two modes of visibility checking are supported, depending on the value of the 'messagingallusers' site setting (site-wide messaging): - If site-wide messaging is enabled, a user may only be returned in search results if the searching user can view their profile somewhere (either the site profile or any course profile). - If site-wide messaging is disabled, a user may only be returned in search results if the searching user shares a course with them and can view their course profile in the shared course.
-
Mark Nelson authored
-
- 25 Apr, 2019 2 commits
-
-
Juan Leyva authored
-
Juan Leyva authored
-
- 16 Apr, 2019 1 commit
-
-
Sara Arjona authored
Added new MESSAGE_CONVERSATION_TYPE_SELF type for self-conversations and upgraded legacy self-conversations to the new type, removing repeated members in the message_conversation_members table. Besides, from now, a self-conversation will be created by default for all the existing users. All the self-conversations have been also starred and a default message will be displayed always to explain how to use them.
-
- 15 Apr, 2019 1 commit
-
-
Sara Arjona authored
-
- 13 Mar, 2019 3 commits
-
-
Mark Nelson authored
This method removes all data in the database related to a given conversation.
-
Mark Nelson authored
-
Mark Nelson authored
-
- 14 Dec, 2018 1 commit
-
-
bas authored
add default group image to improve the alignment of group names in the message drawer group messages section
-
- 04 Dec, 2018 1 commit
-
-
Mark Nelson authored
-
- 27 Nov, 2018 2 commits
-
-
Jake Dallimore authored
-
Jake Dallimore authored
-
- 26 Nov, 2018 3 commits
-
-
Jake Dallimore authored
The 3 methods used to test this function are superceded by the cases in the dataprovider, so let's remove these and use the provider instead.
-
Jake Dallimore authored
-
Jake Dallimore authored
The UI can't handle these, so for now, let's not return them.
-
- 23 Nov, 2018 3 commits
-
-
Mark Nelson authored
This will be used by a new web service and we do not want to fetch the user unnecessarily in the call. Also renamed the method for consistency.
-
Jake Dallimore authored
Individual conversations with a soft-deleted user (including messages) are now displayed in the conversation listing. This brings the behaviour of individual conversations in line with group conversations, in that the active user can still view messages.
-
Jake Dallimore authored
Counts for types (individual, group) and favourites can be fetched with a single API call.
-
- 21 Nov, 2018 1 commit
-
-
Mark Nelson authored
This is to replace api::get_contacts when that gets deprecated.
-
- 19 Nov, 2018 2 commits
-
-
Jake Dallimore authored
If a conversation is included in the favourites unread count, it cannot be included in any other type-based counts.
-
Jake Dallimore authored
-