mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-08-30 14:36:06 +02:00
15 lines
363 B
PHP
15 lines
363 B
PHP
|
<?php
|
||
|
|
||
|
class SSViewerTest extends SapphireTest {
|
||
|
/**
|
||
|
* Test that a template without a <head> tag still renders.
|
||
|
*/
|
||
|
function testTemplateWithoutHeadRenders() {
|
||
|
$data = new ArrayData(array(
|
||
|
'Var' => 'var value'
|
||
|
));
|
||
|
|
||
|
$result = $data->renderWith("SSViewerTestPartialTemplate");
|
||
|
$this->assertEquals('Test partial template: var value', $result);
|
||
|
}
|
||
|
}
|