Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 4777a4c5a0
Fetching contributors…

Cannot retrieve contributors at this time

53 lines (42 sloc) 1.365 kb
<?php
/*
* This file is part of the GenemuFormBundle package.
*
* (c) Olivier Chauvel <olivier@generation-multiple.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Genemu\Bundle\FormBundle\Tests\Form\Core\Type;
use Genemu\Bundle\FormBundle\Tests\Form\Type\TypeTestCase;
/**
* @author Olivier Chauvel <olivier@generation-multiple.com>
*/
class TinymceTypeTest extends TypeTestCase
{
public function testDefaultConfigs()
{
$form = $this->factory->create('genemu_tinymce');
$view = $form->createView();
$this->assertEquals(array(
'language' => 'en'
), $view->vars['configs']);
}
public function testConfigs()
{
$form = $this->factory->create('genemu_tinymce', null, array(
'theme' => 'simple',
'configs' => array(
'theme_advanced_toolbar_location' => 'top',
'theme_advanced_toolbar_align' => 'left'
)
));
$view = $form->createView();
$configs = $view->vars['configs'];
$this->assertEquals(array(
'language' => 'en',
'theme_advanced_toolbar_location' => 'top',
'theme_advanced_toolbar_align' => 'left'
), $view->vars['configs']);
}
}
Jump to Line
Something went wrong with that request. Please try again.