Permalink
Browse files

fix tests

  • Loading branch information...
1 parent 503fbaf commit 3a218fb4f5376db3548aeeb6c55145194c8d0491 @trsteel88 committed Apr 5, 2013
Showing with 8 additions and 5 deletions.
  1. +8 −5 Tests/Form/CkeditorTypeTest.php
@@ -3,6 +3,7 @@
namespace Trsteel\CkeditorBundle\Tests\Form;
use Symfony\Component\Form\Tests\Extension\Core\Type\TypeTestCase;
+use Symfony\Component\Form\Forms;
use Trsteel\CkeditorBundle\Form\Type\CkeditorType;
use Trsteel\CkeditorBundle\Form\Transformer\StripJS;
use Trsteel\CkeditorBundle\Form\Transformer\StripCSS;
@@ -30,13 +31,15 @@ public function setUp()
{
parent::setUp();
- $CkeditorType = new CkeditorType($this->get('service_container'));
+ $ckeditorType = new CkeditorType($this->get('service_container'));
- $CkeditorType->addTransformer(new StripJS(), 'strip_js');
- $CkeditorType->addTransformer(new StripCSS(), 'strip_css');
- $CkeditorType->addTransformer(new StripComments(), 'strip_comments');
+ $ckeditorType->addTransformer(new StripJS(), 'strip_js');
+ $ckeditorType->addTransformer(new StripCSS(), 'strip_css');
+ $ckeditorType->addTransformer(new StripComments(), 'strip_comments');
- $this->factory->addType($CkeditorType);
+ $this->factory = Forms::createFormFactoryBuilder()
+ ->addType($ckeditorType)
+ ->getFormFactory();
}
/**

0 comments on commit 3a218fb

Please sign in to comment.