Skip to content

Commit

Permalink
Merge pull request #2869 from samsonasik/more-test-view
Browse files Browse the repository at this point in the history
more test for View::renderString() for null tempData
  • Loading branch information
lonnieezell authored Apr 22, 2020
2 parents e3c6629 + b24aba1 commit dc733a9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/system/View/ViewTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,12 @@ public function testRenderString()
$this->assertEquals($expected, $view->renderString('<h1><?= $testString ?></h1>'));
}

public function testRenderStringNullTempdata()
{
$view = new View($this->config, $this->viewsDir, $this->loader);
$this->assertEquals('test string', $view->renderString('test string'));
}

//--------------------------------------------------------------------

public function testRendersThrowsExceptionIfFileNotFound()
Expand Down

0 comments on commit dc733a9

Please sign in to comment.