Permalink
Browse files

fix test wrong way to set isOptional ;)

  • Loading branch information...
1 parent b6820cc commit 6237a2a57c13edfd2a1a37849af598ad5e02ca66 @jaugustin jaugustin committed May 7, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 Tests/Request/ParamConverter/PropelParamConverterTest.php
@@ -134,7 +134,8 @@ public function testParamConverterFindWithOptionalParam()
{
$paramConverter = new PropelParamConverter();
$request = new Request(array(), array(), array('book' => null));
- $configuration = new ParamConverter(array('class' => 'Propel\PropelBundle\Tests\Fixtures\Model\Book', 'name' => 'book', 'optional' => 'true'));
+ $configuration = new ParamConverter(array('class' => 'Propel\PropelBundle\Tests\Fixtures\Model\Book', 'name' => 'book'));
+ $configuration->setIsOptional(true);
$paramConverter->apply($request, $configuration);
$this->assertNull($request->attributes->get('book'),

0 comments on commit 6237a2a

Please sign in to comment.