Skip to content

Commit dc733a9

Browse files
authored
Merge pull request #2869 from samsonasik/more-test-view
more test for View::renderString() for null tempData
2 parents e3c6629 + b24aba1 commit dc733a9

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/system/View/ViewTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,12 @@ public function testRenderString()
146146
$this->assertEquals($expected, $view->renderString('<h1><?= $testString ?></h1>'));
147147
}
148148

149+
public function testRenderStringNullTempdata()
150+
{
151+
$view = new View($this->config, $this->viewsDir, $this->loader);
152+
$this->assertEquals('test string', $view->renderString('test string'));
153+
}
154+
149155
//--------------------------------------------------------------------
150156

151157
public function testRendersThrowsExceptionIfFileNotFound()

0 commit comments

Comments
 (0)