We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0550852 commit 9eb0c75Copy full SHA for 9eb0c75
1 file changed
tests/system/View/ViewTest.php
@@ -276,6 +276,18 @@ public function testRenderLayoutExtendsCorrectly()
276
$this->assertContains($expected, $view->render('extend'));
277
}
278
279
+ public function testRenderLayoutExtendsMultipleCalls()
280
+ {
281
+ $view = new View($this->config, $this->viewsDir, $this->loader);
282
+
283
+ $view->setVar('testString', 'Hello World');
284
+ $expected = "<p>Open</p>\n<h1>Hello World</h1>\n<p>Hello World</p>";
285
286
+ $view->render('extend');
287
288
+ $this->assertContains($expected, $view->render('extend'));
289
+ }
290
291
public function testRenderLayoutMakesDataAvailableToBoth()
292
{
293
$view = new View($this->config, $this->viewsDir, $this->loader);
0 commit comments