Permalink
Browse files

[Form] Fixed regression introduced when merging 2.1 into master

  • Loading branch information...
webmozart committed Jan 9, 2013
1 parent 3b737b2 commit 33b245bb96b74b0eb26176e2f3150e6f88bc2d94
Showing with 0 additions and 4 deletions.
  1. +0 −1 FormBuilder.php
  2. +0 −3 Tests/FormBuilderTest.php
View
@@ -211,7 +211,6 @@ public function getFormConfig()
{
$config = parent::getFormConfig();
- $config->factory = null;
$config->parent = null;
$config->children = array();
$config->unresolvedChildren = array();
@@ -247,17 +247,14 @@ public function testGetFormConfigErasesReferences()
$config = $builder->getFormConfig();
$reflClass = new \ReflectionClass($config);
- $factory = $reflClass->getProperty('factory');
$parent = $reflClass->getProperty('parent');
$children = $reflClass->getProperty('children');
$unresolvedChildren = $reflClass->getProperty('unresolvedChildren');
- $factory->setAccessible(true);
$parent->setAccessible(true);
$children->setAccessible(true);
$unresolvedChildren->setAccessible(true);
- $this->assertNull($factory->getValue($config));
$this->assertNull($parent->getValue($config));
$this->assertEmpty($children->getValue($config));
$this->assertEmpty($unresolvedChildren->getValue($config));

0 comments on commit 33b245b

Please sign in to comment.