ILIAS  release_8 Revision v8.24
TestCase.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
21namespace ILIAS\Tests\Refinery;
22
24use ilLanguage;
25use PHPUnit\Framework\TestCase as PHPUnitTestCase;
26
28{
30 public array $requested = [];
31 public string $lang_module = 'common';
32
33 public function __construct()
34 {
35 }
36
37 public function txt(string $a_topic, string $a_default_lang_fallback_mod = ''): string
38 {
39 $this->requested[] = $a_topic;
40 return $a_topic;
41 }
42
43 public function toJS($a_lang_key, ilGlobalTemplateInterface $a_tpl = null): void
44 {
45 }
46
47 public function loadLanguageModule(string $a_module): void
48 {
49 }
50}
51
52abstract class TestCase extends PHPUnitTestCase
53{
54 public function getLanguage(): ilLanguageMock
55 {
56 return new ilLanguageMock();
57 }
58}
loadLanguageModule(string $a_module)
Load language module.
Definition: TestCase.php:47
txt(string $a_topic, string $a_default_lang_fallback_mod='')
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
Definition: TestCase.php:37
toJS($a_lang_key, ilGlobalTemplateInterface $a_tpl=null)
Transfer text to Javascript.
Definition: TestCase.php:43
language handling
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...