Skip to content

Commit c0589a3

Browse files
committed
[FrameworkBundle] Fix 3.4 tests
1 parent 117f7a0 commit c0589a3

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

DependencyInjection/Configuration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
use Symfony\Component\Form\Form;
2222
use Symfony\Component\Lock\Lock;
2323
use Symfony\Component\Lock\Store\SemaphoreStore;
24-
use Symfony\Component\PropertyInfo\PropertyInfoExtractor;
24+
use Symfony\Component\PropertyInfo\PropertyInfoExtractorInterface;
2525
use Symfony\Component\Security\Csrf\CsrfTokenManagerInterface;
2626
use Symfony\Component\Serializer\Serializer;
2727
use Symfony\Component\Translation\Translator;
@@ -824,7 +824,7 @@ private function addPropertyInfoSection(ArrayNodeDefinition $rootNode)
824824
->children()
825825
->arrayNode('property_info')
826826
->info('Property info configuration')
827-
->{!class_exists(FullStack::class) && class_exists(PropertyInfoExtractor::class) ? 'canBeDisabled' : 'canBeEnabled'}()
827+
->{!class_exists(FullStack::class) && interface_exists(PropertyInfoExtractorInterface::class) ? 'canBeDisabled' : 'canBeEnabled'}()
828828
->end()
829829
->end()
830830
;

Tests/DependencyInjection/ConfigurationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ protected static function getBundleDefaultConfig()
335335
'throw_exception_on_invalid_index' => false,
336336
),
337337
'property_info' => array(
338-
'enabled' => false,
338+
'enabled' => !class_exists(FullStack::class),
339339
),
340340
'router' => array(
341341
'enabled' => false,

Tests/DependencyInjection/FrameworkExtensionTest.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -979,12 +979,6 @@ public function testSerializerServiceIsNotRegisteredWhenDisabled()
979979
$this->assertFalse($container->hasDefinition('serializer'));
980980
}
981981

982-
public function testPropertyInfoDisabled()
983-
{
984-
$container = $this->createContainerFromFile('default_config');
985-
$this->assertFalse($container->has('property_info'));
986-
}
987-
988982
public function testPropertyInfoEnabled()
989983
{
990984
$container = $this->createContainerFromFile('property_info');

0 commit comments

Comments
 (0)