fix test wrong way to set isOptional ;)

This commit is contained in:
jaugustin 2012-05-07 23:43:52 +02:00
parent b6820ccef7
commit 6237a2a57c

View file

@ -134,7 +134,8 @@ class PropelParamConverterTest extends TestCase
{
$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'),