forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-64821 mod_forum: don't show name of deleted user
When a user account is deleted don't render the user's name in the forum. Instead we render "Deleted user".
- Loading branch information
1 parent
b97622a
commit 23e0cec
Showing
14 changed files
with
102 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,6 +47,7 @@ public function test_entity() { | |
'person', | ||
'test person', | ||
'[email protected]', | ||
false, | ||
'middle', | ||
'tteeeeest', | ||
'ppppeeerssson', | ||
|
@@ -60,6 +61,7 @@ public function test_entity() { | |
$this->assertEquals('person', $author->get_last_name()); | ||
$this->assertEquals('test person', $author->get_full_name()); | ||
$this->assertEquals('[email protected]', $author->get_email()); | ||
$this->assertEquals(false, $author->is_deleted()); | ||
$this->assertEquals('middle', $author->get_middle_name()); | ||
$this->assertEquals('tteeeeest', $author->get_first_name_phonetic()); | ||
$this->assertEquals('ppppeeerssson', $author->get_last_name_phonetic()); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,15 +49,17 @@ public function test_entity() { | |
'test', | ||
'person', | ||
'test person', | ||
'[email protected]' | ||
'[email protected]', | ||
false | ||
); | ||
$lastauthor = new author_entity( | ||
2, | ||
3, | ||
'test 2', | ||
'person 2', | ||
'test 2 person 2', | ||
'[email protected]' | ||
'[email protected]', | ||
false | ||
); | ||
$discussion = new discussion_entity( | ||
1, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,7 +57,8 @@ public function test_export_author() { | |
'test', | ||
'user', | ||
'test user', | ||
'[email protected]' | ||
'[email protected]', | ||
false | ||
); | ||
|
||
$exporter = new author_exporter($author, 1, [], true, [ | ||
|
@@ -95,7 +96,8 @@ public function test_export_author_with_groups() { | |
'test', | ||
'user', | ||
'test user', | ||
'[email protected]' | ||
'[email protected]', | ||
false | ||
); | ||
|
||
$group = $datagenerator->create_group(['courseid' => $course->id]); | ||
|
@@ -132,7 +134,8 @@ public function test_export_author_no_view_capability() { | |
'test', | ||
'user', | ||
'test user', | ||
'[email protected]' | ||
'[email protected]', | ||
false | ||
); | ||
|
||
$group = $datagenerator->create_group(['courseid' => $course->id]); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters