Unit tests for template class.
More...
Unit tests for template class.
- Author
- Alex Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de
- Version
- $Id$ needsInstalledILIAS
Definition at line 13 of file ilTemplateTest.php.
◆ setUp()
ilTemplateTest::setUp |
( |
| ) |
|
|
protected |
Setup.
Definition at line 18 of file ilTemplateTest.php.
References array, and defined.
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());
Create styles array
The data for the language used.
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
◆ testilTemplateGet()
ilTemplateTest::testilTemplateGet |
( |
| ) |
|
enabled
Definition at line 43 of file ilTemplateTest.php.
References $tpl.
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."
special template class to simplify handling of ITX/PEAR
The documentation for this class was generated from the following file: