fix test wrong way to set isOptional ;)
This commit is contained in:
parent
b6820ccef7
commit
6237a2a57c
|
@ -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'),
|
||||
|
|
Loading…
Reference in a new issue