mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +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);
|
||
|
}
|
||
|
}
|