Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
rande committed Sep 26, 2013
1 parent 7c3a40e commit a21629c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Form/Type/StatusType.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function getName()
public function setDefaultOptions(OptionsResolverInterface $resolver)
{
$resolver->setDefaults(array(
'choice' => call_user_func(array($this->class, $this->getter))
'choices' => call_user_func(array($this->class, $this->getter))
));
}
}
4 changes: 2 additions & 2 deletions Tests/Form/Type/StatusTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function testGetDefaultOptions()

$options = $optionResolver->resolve(array());

$this->assertArrayHasKey('choice', $options);
$this->assertEquals($options['choice'], array(1 => 'salut'));
$this->assertArrayHasKey('choices', $options);
$this->assertEquals($options['choices'], array(1 => 'salut'));
}
}

0 comments on commit a21629c

Please sign in to comment.