File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ public function test_create_file_from_pathname(): void {
209
209
*
210
210
* @covers ::get_file
211
211
*/
212
- public function test_get_file () {
212
+ public function test_get_file (): stored_file {
213
213
global $ CFG ;
214
214
215
215
$ this ->resetAfterTest (false );
Original file line number Diff line number Diff line change @@ -422,7 +422,7 @@ public function test_message_processors_reset(): void {
422
422
$ this ->assertEquals (count ($ processors1 ) + 1 , count ($ processors3 ));
423
423
}
424
424
425
- public function test_message_redirection () {
425
+ public function test_message_redirection (): \ phpunit_message_sink {
426
426
$ this ->preventResetByRollback (); // Messaging is not compatible with transactions...
427
427
$ this ->resetAfterTest (false );
428
428
@@ -544,7 +544,7 @@ public function test_message_redirection() {
544
544
/**
545
545
* @depends test_message_redirection
546
546
*/
547
- public function test_message_redirection_noreset ($ sink ): void {
547
+ public function test_message_redirection_noreset (\ phpunit_message_sink $ sink ): void {
548
548
if ($ this ->isInIsolation ()) {
549
549
$ this ->markTestSkipped ('State cannot be carried over between tests in isolated tests ' );
550
550
}
Original file line number Diff line number Diff line change @@ -358,7 +358,7 @@ public function test_module_extends_navigation(): void {
358
358
$ this ->assertFalse ($ node ->exposed_module_extends_navigation ('test1 ' ));
359
359
}
360
360
361
- public function test_navbar_prepend_and_add () {
361
+ public function test_navbar_prepend_and_add (): \ moodle_page {
362
362
global $ PAGE ;
363
363
// Unfortunate hack needed because people use global $PAGE around the place.
364
364
$ PAGE ->set_url ('/ ' );
@@ -452,7 +452,7 @@ public function test_cache_set(): void {
452
452
$ this ->assertEquals ($ cache ->software , 'Moodle ' );
453
453
}
454
454
455
- public function test_setting___construct () {
455
+ public function test_setting___construct (): settings_navigation {
456
456
global $ PAGE , $ SITE ;
457
457
458
458
$ this ->resetAfterTest (false );
@@ -470,7 +470,7 @@ public function test_setting___construct() {
470
470
* @param mixed $node
471
471
* @return mixed
472
472
*/
473
- public function test_setting__initialise ($ node ) {
473
+ public function test_setting__initialise ($ node ): settings_navigation {
474
474
$ this ->resetAfterTest (false );
475
475
476
476
$ node ->initialise ();
You can’t perform that action at this time.
0 commit comments