title: Testing Symfony2 Forms causes Could not load type "entity"
body: <p>I am testing a Form Type I defined for an application. During testing the form type, using symfony's TypeTestCase class a message "Could not load type "entity"" appears. What can I do to solve the problem??</p>
  
  <pre><code>class MyType extends AbstractType {
    public function buildForm(FormBuilderInterface $builder, array $options) {
      $builder-&gt;add('otherType', 'entity', array('class' =&gt; 'Bundle:OtherType'));
    }
  }
  
  class MyTypeTest extends TypeTestCase {
    public function testSth() {
      $type = new MyType();
    }
  }
  </code></pre>