20 if (
defined(
'ILIAS_PHPUNIT_CONTEXT'))
22 require_once
'./Services/PHPUnit/classes/class.ilUnitUtil.php';
23 ilUnitUtil::performInitialisation();
27 chdir( dirname( __FILE__ ) );
32 include_once(
"./Services/Component/classes/class.ilPluginAdmin.php");
33 global $ilPluginAdmin;
34 $ilPluginAdmin = $this->getMockBuilder(
'ilPluginAdmin')
36 $ilPluginAdmin->method(
'getActivePluginsForSlot')
37 ->willReturn(
array());
45 include_once(
"./Services/UICore/classes/class.ilTemplate.php");
46 $tpl =
new ilTemplate(
"tpl.test_template_1.html",
true,
true,
"Services/UICore/test");
47 $tpl->setVariable(
"CONTENT",
"Hello World");
49 $actual =
$tpl->get();
52 $expected =
"<b>Hello World</b>";
56 "ilTemplate get() not rendered properly."
testilTemplateGet()
enabled
Unit tests for template class.
special template class to simplify handling of ITX/PEAR
Create styles array
The data for the language used.
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'