예제 #1
0
 public function testSettingTemplateFromViewProperty()
 {
     $kernelMock = $this->getKernelMock();
     $widget = new Participation($kernelMock, array('config' => array('view' => 'my-test-view')));
     $this->assertEquals(__DIR__ . '/Participation/views/my-test-view.html', $widget->getViewFile(), "view file should be using `config.view` for the view name `my-test-view`");
 }