public static function assertLabel(local_mail_label $label) { self::assertRecords('labels', array('id' => $label->id(), 'userid' => $label->userid(), 'name' => $label->name(), 'color' => $label->color())); }