mirror of
https://github.com/moodle/moodle.git
synced 2025-05-10 02:08:33 +02:00
MDL-77347 mod_survey: Added missing class properties.
In PHP 8.2 and later, setting a value to an undeclared class property is deprecated and emits a deprecation notice. So we need to add missing class properties that still need to be declared.
This commit is contained in:
parent
f34a1296b5
commit
ace998b8eb
@ -38,6 +38,30 @@ require_once($CFG->dirroot . '/mod/survey/lib.php');
|
||||
*/
|
||||
class externallib_test extends externallib_advanced_testcase {
|
||||
|
||||
/** @var \stdClass course record. */
|
||||
protected $course;
|
||||
|
||||
/** @var \stdClass activity record. */
|
||||
protected $survey;
|
||||
|
||||
/** @var \context_module context instance. */
|
||||
protected $context;
|
||||
|
||||
/** @var \StdClass course module. */
|
||||
protected $cm;
|
||||
|
||||
/** @var \StdClass student record. */
|
||||
protected $student;
|
||||
|
||||
/** @var \StdClass teacher record. */
|
||||
protected $teacher;
|
||||
|
||||
/** @var \StdClass student role. */
|
||||
protected $studentrole;
|
||||
|
||||
/** @var \StdClass teacher role. */
|
||||
protected $teacherrole;
|
||||
|
||||
/**
|
||||
* Set up for every test
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user