public function testDefaultLayout()
 {
     $layoutConfig = ['path' => 'foo/bar/baz', 'params' => ['foo' => 'bar'], 'template_capture_to' => 'content'];
     $this->assertSame($this->templateOptions, $this->templateOptions->setDefaultLayout($layoutConfig));
     $this->assertEquals($layoutConfig, $this->templateOptions->getDefaultLayout());
 }
 public function testChildrenCastToTemplateOptions()
 {
     $children = array('content' => array('path' => 'ac-mailer/content', 'params' => array()), 'foo' => array('path' => 'ac-mailer/foo', 'params' => array()), 'bar' => array('path' => 'ac-mailer/bar', 'params' => array(), 'children' => array('nested' => array('path' => 'ac-mailer/nested', 'params' => array()))));
     $this->templateOptions->setChildren($children);
     $this->recursiveChildAssert($this->templateOptions->getChildren());
 }