MDL-42560 Events: Removed use of role->name

role->name is usually empty or localized, so should not be used in events
This commit is contained in:
Rajesh Taneja
2013-10-28 11:06:47 +08:00
parent 68291f2d57
commit 045d913d11
4 changed files with 2 additions and 6 deletions
-1
View File
@@ -699,7 +699,6 @@ class core_accesslib_testcase extends advanced_testcase {
$this->assertSame('role', $event->objecttable);
$this->assertSame($role->id, $event->objectid);
$this->assertEquals(context_system::instance(), $event->get_context());
$this->assertSame($role->name, $event->other['name']);
$this->assertSame($role->shortname, $event->other['shortname']);
$this->assertSame($role->description, $event->other['description']);
$this->assertSame($role->archetype, $event->other['archetype']);