Línea 54... |
Línea 54... |
54 |
* @param boolean $userthemesallowed Whether to allow user themes.
|
54 |
* @param boolean $userthemesallowed Whether to allow user themes.
|
55 |
* @param string $themename The theme name to be tested.
|
55 |
* @param string $themename The theme name to be tested.
|
56 |
* @param string $expectedstatus The expected status.
|
56 |
* @param string $expectedstatus The expected status.
|
57 |
* @param string $expectedmessage The expected validation message.
|
57 |
* @param string $expectedmessage The expected validation message.
|
58 |
*/
|
58 |
*/
|
59 |
public function test_validate_theme($userthemesallowed, $themename, $expectedstatus, $expectedmessage) {
|
59 |
public function test_validate_theme($userthemesallowed, $themename, $expectedstatus, $expectedmessage): void {
|
60 |
$this->resetAfterTest();
|
60 |
$this->resetAfterTest();
|
Línea 61... |
Línea 61... |
61 |
|
61 |
|
62 |
// Set value for $CFG->allowuserthemes.
|
62 |
// Set value for $CFG->allowuserthemes.
|