Skip to content

Commit 997da3e

Browse files
Fix tests
1 parent b8a4726 commit 997da3e

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

Tests/Loader/YamlFileLoaderTest.php

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ public function testParsesIteratorArgument()
372372

373373
$this->assertEquals([new IteratorArgument(['k1' => new Reference('foo.baz'), 'k2' => new Reference('service_container')]), new IteratorArgument([])], $lazyDefinition->getArguments(), '->load() parses lazy arguments');
374374

375-
$message = 'The "deprecated_service" service is deprecated. You should stop using it, as it will soon be removed.';
375+
$message = 'The "deprecated_service" service is deprecated. You should stop using it, as it will be removed in the future.';
376376
$this->assertSame($message, $container->getDefinition('deprecated_service')->getDeprecationMessage('deprecated_service'));
377377
}
378378

@@ -824,18 +824,6 @@ public function testOverriddenDefaultsBindings()
824824
$this->assertSame('overridden', $container->get('bar')->quz);
825825
}
826826

827-
/**
828-
* @group legacy
829-
* @expectedDeprecation The configuration key "factory" is unsupported for the service "foo" which is defined as an alias in %s.
830-
* @expectedDeprecation The configuration key "parent" is unsupported for the service "foo" which is defined as an alias in %s.
831-
*/
832-
public function testAliasDefinitionContainsUnsupportedElements()
833-
{
834-
$container = new ContainerBuilder();
835-
$loader = new YamlFileLoader($container, new FileLocator(self::$fixturesPath.'/yaml'));
836-
$loader->load('legacy_invalid_alias_definition.yml');
837-
$this->assertTrue($container->has('foo'));
838-
839827
/**
840828
* When creating a tagged iterator using the array syntax, all optional parameters should be properly handled.
841829
*/

0 commit comments

Comments
 (0)