[ticket/715] Resolve issues with portal and tests on PHP 8.0

B3P-715
This commit is contained in:
Marc Alexander
2021-09-04 11:09:52 +02:00
parent 9eb415b79c
commit ed54e3ef0c
30 changed files with 233 additions and 143 deletions

View File

@@ -64,6 +64,11 @@ class template
$this->test_case->assertSame($expected, $this->data[$row]);
}
public function assert_not_exist($row)
{
$this->test_case->assertArrayNotHasKey($row, $this->data);
}
public function delete_var($key)
{
unset($this->data[$key]);
@@ -71,6 +76,6 @@ class template
public function get_row($row)
{
return $this->data[$row];
return $this->data[$row] ?? null;
}
}