MDL-39846 improve role assignment tests

This commit is contained in:
Petr Škoda
2013-07-19 08:43:29 +02:00
parent ed17808d99
commit 890e3e6415
2 changed files with 62 additions and 4 deletions
+3 -3
View File
@@ -49,9 +49,9 @@ class phpunit_event_sink {
* To be called from phpunit_util only!
*
* @private
* @param stdClass $event record from event_read table
* @param \core\event\base $event record from event_read table
*/
public function add_event($event) {
public function add_event(\core\event\base $event) {
/* Number events from 0. */
$this->events[] = $event;
}
@@ -63,7 +63,7 @@ class phpunit_event_sink {
* The array indexes are numbered from 0 and the order is matching
* the creation of events.
*
* @return array
* @return \core\event\base[]
*/
public function get_events() {
return $this->events;