示例#1
0
    protected function setUp()
    {
        parent::setUp();

        $this->form = $this->factory->create('repeated', null, array(
            'type' => 'field',
        ));
        $this->form->setData(null);
    }
 protected function getExtensions()
 {
     return array_merge(parent::getExtensions(), array(new DoctrineOrmExtension($this->createRegistryMock('default', $this->em))));
 }
 protected function getExtensions()
 {
     return array_merge(parent::getExtensions(), array(new DoctrineMongoDBExtension($this->documentManager)));
 }
示例#4
0
 protected function getExtensions()
 {
     return array_merge(parent::getExtensions(), array(
         new CsrfExtension($this->csrfProvider),
     ));
 }
示例#5
0
 protected function getExtensions()
 {
     return array_merge(parent::getExtensions(), array(
         new ValidatorExtension($this->validator),
     ));
 }
 public function setUp()
 {
     parent::setUp();
     \Locale::setDefault('en');
 }
示例#7
0
 protected function getExtensions()
 {
     return array_merge(parent::getExtensions(), array(
         new DoctrineOrmExtension($this->em),
     ));
 }
示例#8
0
 protected function tearDown()
 {
     parent::tearDown();
     $this->objectChoices = null;
 }
示例#9
0
    protected function setUp()
    {
        parent::setUp();

        $this->form = $this->factory->create('file');
    }