[FrameworkBundle] Fix 3.4 tests
This commit is contained in:
parent
dd56372fc0
commit
3b99a0d823
@ -21,7 +21,7 @@ use Symfony\Component\Config\Definition\ConfigurationInterface;
|
|||||||
use Symfony\Component\Form\Form;
|
use Symfony\Component\Form\Form;
|
||||||
use Symfony\Component\Lock\Lock;
|
use Symfony\Component\Lock\Lock;
|
||||||
use Symfony\Component\Lock\Store\SemaphoreStore;
|
use Symfony\Component\Lock\Store\SemaphoreStore;
|
||||||
use Symfony\Component\PropertyInfo\PropertyInfoExtractor;
|
use Symfony\Component\PropertyInfo\PropertyInfoExtractorInterface;
|
||||||
use Symfony\Component\Security\Csrf\CsrfTokenManagerInterface;
|
use Symfony\Component\Security\Csrf\CsrfTokenManagerInterface;
|
||||||
use Symfony\Component\Serializer\Serializer;
|
use Symfony\Component\Serializer\Serializer;
|
||||||
use Symfony\Component\Translation\Translator;
|
use Symfony\Component\Translation\Translator;
|
||||||
@ -824,7 +824,7 @@ class Configuration implements ConfigurationInterface
|
|||||||
->children()
|
->children()
|
||||||
->arrayNode('property_info')
|
->arrayNode('property_info')
|
||||||
->info('Property info configuration')
|
->info('Property info configuration')
|
||||||
->{!class_exists(FullStack::class) && class_exists(PropertyInfoExtractor::class) ? 'canBeDisabled' : 'canBeEnabled'}()
|
->{!class_exists(FullStack::class) && interface_exists(PropertyInfoExtractorInterface::class) ? 'canBeDisabled' : 'canBeEnabled'}()
|
||||||
->end()
|
->end()
|
||||||
->end()
|
->end()
|
||||||
;
|
;
|
||||||
|
@ -335,7 +335,7 @@ class ConfigurationTest extends TestCase
|
|||||||
'throw_exception_on_invalid_index' => false,
|
'throw_exception_on_invalid_index' => false,
|
||||||
),
|
),
|
||||||
'property_info' => array(
|
'property_info' => array(
|
||||||
'enabled' => false,
|
'enabled' => !class_exists(FullStack::class),
|
||||||
),
|
),
|
||||||
'router' => array(
|
'router' => array(
|
||||||
'enabled' => false,
|
'enabled' => false,
|
||||||
|
@ -979,12 +979,6 @@ abstract class FrameworkExtensionTest extends TestCase
|
|||||||
$this->assertFalse($container->hasDefinition('serializer'));
|
$this->assertFalse($container->hasDefinition('serializer'));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testPropertyInfoDisabled()
|
|
||||||
{
|
|
||||||
$container = $this->createContainerFromFile('default_config');
|
|
||||||
$this->assertFalse($container->has('property_info'));
|
|
||||||
}
|
|
||||||
|
|
||||||
public function testPropertyInfoEnabled()
|
public function testPropertyInfoEnabled()
|
||||||
{
|
{
|
||||||
$container = $this->createContainerFromFile('property_info');
|
$container = $this->createContainerFromFile('property_info');
|
||||||
|
Reference in New Issue
Block a user