test: fix two tests on PHP8

On PHP8 trying to access a non-existing array key leads to a warning,
which we might treat as errors?

This incidentally also fixes another test downstream which broke because
this rendering test changes the global plugin controller, but doesn't
clean it up that if the test errors.

-9000 is used as the position to make it obvious that this number is
meaningless for this test.
This commit is contained in:
Michael Große 2021-02-20 15:26:39 +01:00
parent 5805f15af0
commit e855b7ed6a
No known key found for this signature in database
GPG Key ID: BDD834E001B99EDC
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ class parserutils_set_metadata_during_rendering_test extends DokuWikiTest
public function helper_inject_test_instruction($event)
{
if ($this->active) {
$event->data->calls[] = ['plugin', ['parserutils_test', []]];
$event->data->calls[] = ['plugin', ['parserutils_test', []], -9000];
}
}